/busybox-1.35.0/libbb/ |
D | read_key.c | 12 int64_t FAST_FUNC read_key(int fd, char *buffer, int timeout) in read_key() argument 118 buffer++; /* saved chars counter is in buffer[-1] now */ in read_key() 122 n = (unsigned char)buffer[-1]; in read_key() 141 n = safe_read(fd, buffer, 1); in read_key() 147 unsigned char c = buffer[0]; in read_key() 150 memmove(buffer, buffer + 1, n); in read_key() 153 buffer[-1] = n; in read_key() 182 if (safe_read(fd, buffer + n, 1) <= 0) { in read_key() 187 buffer[-1] = 0; in read_key() 194 if (buffer[i] != (seq[i] & 0x7f)) { in read_key() [all …]
|
D | copyfd.c | 36 char *buffer = buffer; /* for compiler */ in bb_full_fd_action() local 39 char buffer[CONFIG_FEATURE_COPYBUF_KB * 1024]; in bb_full_fd_action() local 40 enum { buffer_size = sizeof(buffer) }; in bb_full_fd_action() 78 buffer = mmap_anon(CONFIG_FEATURE_COPYBUF_KB * 1024); in bb_full_fd_action() 80 if (buffer == MAP_FAILED) { in bb_full_fd_action() 82 buffer = alloca(4 * 1024); in bb_full_fd_action() 87 rd = safe_read(src_fd, buffer, in bb_full_fd_action() 100 ssize_t wr = full_write(dst_fd, buffer, rd); in bb_full_fd_action() 124 munmap(buffer, buffer_size); in bb_full_fd_action()
|
D | correct_password.c | 39 #define get_passwd(pw, buffer) get_passwd(pw) argument 41 static const char *get_passwd(const struct passwd *pw, char buffer[SHADOW_BUFSIZE]) in get_passwd() 57 r = getspnam_r(pw->pw_name, &spw, buffer, SHADOW_BUFSIZE, &result); in get_passwd() 72 IF_FEATURE_SHADOWPASSWDS(char buffer[SHADOW_BUFSIZE];) in check_password() 77 pw_pass = get_passwd(pw, buffer); in check_password() 100 IF_FEATURE_SHADOWPASSWDS(char buffer[SHADOW_BUFSIZE];) in ask_and_check_password_extended() 105 pw_pass = get_passwd(pw, buffer); in ask_and_check_password_extended()
|
D | rtc.c | 16 char buffer[128]; in rtc_adjtime_is_utc() local 18 while (fgets(buffer, sizeof(buffer), f)) { in rtc_adjtime_is_utc() 19 if (is_prefixed_with(buffer, "UTC")) { in rtc_adjtime_is_utc()
|
D | hash_md5prime.c | 407 void FAST_FUNC md5_hash(const void *buffer, size_t inputLen, md5_ctx_t *context) in md5_hash() argument 410 const unsigned char *input = buffer; in md5_hash() 425 memcpy(&context->buffer[idx], input, partLen); in md5_hash() 426 md5_transform(context->state, context->buffer); in md5_hash() 433 memcpy(&context->buffer[idx], &input[i], inputLen - i); in md5_hash()
|
D | hash_md5_sha.c | 421 void FAST_FUNC md5_hash(md5_ctx_t *ctx, const void *buffer, size_t len) in md5_hash() argument 432 memcpy(ctx->wbuffer + bufpos, buffer, remaining); in md5_hash() 434 buffer = (const char *)buffer + remaining; in md5_hash() 817 void FAST_FUNC sha512_hash(sha512_ctx_t *ctx, const void *buffer, size_t len) in sha512_hash() argument 834 memcpy(ctx->wbuffer + bufpos, buffer, remaining); in sha512_hash() 836 buffer = (const char *)buffer + remaining; in sha512_hash() 1362 void FAST_FUNC sha3_hash(sha3_ctx_t *ctx, const void *buffer, size_t len) in sha3_hash() argument 1365 const uint8_t *data = buffer; in sha3_hash() 1393 const uint8_t *data = buffer; in sha3_hash()
|
/busybox-1.35.0/coreutils/ |
D | tr.c | 104 char *buffer = *buffer_p; in expand() local 113 *buffer_p = buffer = xrealloc(buffer, size); in expand() 131 buffer[pos++] = *arg++; /* copy '0' */ in expand() 143 buffer[pos++] = i++; in expand() 189 buffer[pos++] = i; in expand() 193 buffer[pos++] = i; in expand() 197 buffer[pos++] = i; in expand() 200 buffer[pos++] = '\t'; in expand() 202 buffer[pos++] = '\n'; in expand() 203 buffer[pos++] = '\v'; in expand() [all …]
|
D | echo.c | 88 char *buffer; in echo_main() local 138 out = buffer = xmalloc(buflen + 1); /* +1 is needed for "no args" case */ in echo_main() 189 err = full_write(STDOUT_FILENO, buffer, out - buffer) != out - buffer; in echo_main() 193 free(buffer); in echo_main()
|
/busybox-1.35.0/console-tools/ |
D | loadfont.c | 270 static void do_load(int fd, unsigned char *buffer, size_t len) in do_load() argument 277 unsigned char *font = buffer; in do_load() 280 if (len >= sizeof(struct psf1_header) && PSF1_MAGIC_OK(psf1h(buffer))) { in do_load() 281 if (psf1h(buffer)->mode > PSF1_MAXMODE) in do_load() 283 if (psf1h(buffer)->mode & PSF1_MODE512) in do_load() 285 if (psf1h(buffer)->mode & PSF1_MODEHASTAB) in do_load() 287 height = charsize = psf1h(buffer)->charsize; in do_load() 291 if (len >= sizeof(struct psf2_header) && PSF2_MAGIC_OK(psf2h(buffer))) { in do_load() 292 if (psf2h(buffer)->version > PSF2_MAXVERSION) in do_load() 294 fontsize = psf2h(buffer)->length; in do_load() [all …]
|
/busybox-1.35.0/libpwdgrp/ |
D | pwd_grp.c | 157 static int tokenize(char *buffer, int ch) in tokenize() argument 159 char *p = buffer; in tokenize() 251 char *buffer, void *result) in convert_to_struct() argument 263 *(char **)member = (char*)buffer; in convert_to_struct() 264 if (!buffer[0] && (*def == 'S')) { in convert_to_struct() 269 *(int *)member = bb_strtou(buffer, NULL, 10); in convert_to_struct() 274 if (buffer[0]) in convert_to_struct() 275 n = bb_strtol(buffer, NULL, 10); in convert_to_struct() 281 int i = tokenize(buffer, ','); in convert_to_struct() 294 if (buffer[0]) { in convert_to_struct() [all …]
|
/busybox-1.35.0/shell/ |
D | shell_common.c | 44 char *buffer; in shell_builtin_read() local 170 buffer = NULL; in shell_builtin_read() 178 buffer = xrealloc(buffer, bufpos + 0x101); in shell_builtin_read() 205 if (read(fd, &buffer[bufpos], 1) != 1) { in shell_builtin_read() 211 c = buffer[bufpos]; in shell_builtin_read() 246 buffer[bufpos] = '\0'; in shell_builtin_read() 248 params->setvar(*argv, buffer); in shell_builtin_read() 262 && isspace(buffer[bufpos]) in shell_builtin_read() 263 && strchr(ifs, buffer[bufpos]) != NULL in shell_builtin_read() 267 buffer[bufpos + 1] = '\0'; in shell_builtin_read() [all …]
|
/busybox-1.35.0/miscutils/ |
D | volname.c | 51 char buffer[32]; in volname_main() local 63 xread(fd, buffer, 32); in volname_main() 64 printf("%32.32s\n", buffer); in volname_main()
|
D | devfsd.c | 1452 char *buffer, unsigned int major, unsigned int minor) in get_old_name() argument 1493 sprintf(buffer, trans->format, after_match); in get_old_name() 1494 return buffer; in get_old_name() 1502 compat_name = buffer; in get_old_name() 1508 sprintf(buffer, fmt[i], minor); in get_old_name() 1512 compat_name = write_old_sd_name(buffer, major, minor, ((i == 2) ? "" : (ptr + 4))); in get_old_name() 1519 sprintf(buffer, fmt[i], minor & 0x1f, mode); in get_old_name() 1526 sprintf(buffer, fmt[i] , get_old_ide_name(major, minor), ptr + 4); in get_old_name() 1530 sprintf(buffer, fmt[i], ptr + 2, minor & 0x7f); in get_old_name() 1534 sprintf(buffer, fmt[i], devname + 4); in get_old_name() [all …]
|
D | less.c | 207 const char **buffer; member 257 #define buffer (G.buffer ) macro 905 print_lineno(buffer[i]); in buffer_print() 907 print_found(buffer[i]); in buffer_print() 909 print_ascii(buffer[i]); in buffer_print() 936 buffer[i] = flines[fpos]; in buffer_fill_and_print() 947 buffer[i] = flines[cur_fline + i]; in buffer_fill_and_print() 951 buffer[i] = empty_line_marker; in buffer_fill_and_print() 1908 buffer = xmalloc((max_displayed_line+1) * sizeof(char *)); in less_main() 1925 free(buffer); in less_main() [all …]
|
/busybox-1.35.0/networking/udhcp/ |
D | common.c | 487 #define attach_option(opt_list, optflag, buffer, length, dhcpv6) \ argument 488 attach_option(opt_list, optflag, buffer, length) 493 char *buffer, in attach_option() argument 503 allocated = xstrdup(buffer); /* more than enough */ in attach_option() 504 end = hex2bin(allocated, buffer, 255); in attach_option() 506 bb_error_msg_and_die("malformed hex string '%s'", buffer); in attach_option() 508 buffer = allocated; in attach_option() 513 allocated = buffer = (char *)dname_enc(/*NULL, 0,*/ buffer, &length); in attach_option() 522 memcpy(p + OPT_DATA, buffer, length); in attach_option() 524 memcpy(p + D6_OPT_DATA, buffer, length); in attach_option() [all …]
|
/busybox-1.35.0/networking/ |
D | httpd_indexcgi.c | 116 static char buffer[2*1024 > sizeof(STYLE_STR) ? 2*1024 : sizeof(STYLE_STR)]; variable 117 static char *dst = buffer; 119 BUFFER_SIZE = sizeof(buffer), 127 if (buffer + (BUFFER_SIZE-HEADROOM) - dst >= size) in guarantee() 129 write(STDOUT_FILENO, buffer, dst - buffer); in guarantee() 130 dst = buffer; in guarantee()
|
D | netstat.c | 664 char *buffer; in do_info() local 673 while ((buffer = xmalloc_fgets_str(procinfo, "\n")) != NULL) { in do_info() 675 if (lnr && proc(buffer)) in do_info() 678 free(buffer); in do_info()
|
/busybox-1.35.0/archival/libarchive/ |
D | decompress_unlzma.c | 226 uint8_t *buffer; in IF_DESKTOP() local 258 buffer = xmalloc(buffer_size); in IF_DESKTOP() 298 match_byte = buffer[pos]; in IF_DESKTOP() 318 buffer[buffer_pos++] = previous_byte; in IF_DESKTOP() 322 if (transformer_write(xstate, buffer, header.dict_size) != (ssize_t)header.dict_size) in IF_DESKTOP() 364 previous_byte = buffer[pos]; in IF_DESKTOP() 488 previous_byte = buffer[pos]; in IF_DESKTOP() 490 buffer[buffer_pos++] = previous_byte; in IF_DESKTOP() 494 if (transformer_write(xstate, buffer, header.dict_size) != (ssize_t)header.dict_size) in IF_DESKTOP() 512 if (transformer_write(xstate, buffer, buffer_pos) != (ssize_t)buffer_pos) { in IF_DESKTOP() [all …]
|
/busybox-1.35.0/scripts/kconfig/ |
D | lex.zconf.c_shipped | 132 /* Size of default input buffer. */ 184 char *yy_ch_buf; /* input buffer */ 185 char *yy_buf_pos; /* current position in input buffer */ 187 /* Size of input buffer in bytes, not including room for EOB 197 /* Whether we "own" the buffer - i.e., we know we created it, 219 /* Whether to try to fill the input buffer when we reach the 229 * then we mark the buffer as YY_EOF_PENDING, to indicate that we 248 /* We provide macros for accessing buffer states in case in the 249 * future we want to put the buffer states in a more general 258 /* Same as previous macro, but useful when we know that the buffer stack is not [all …]
|
D | zconf.l | 29 struct buffer { struct 30 struct buffer *parent; argument 34 struct buffer *current_buf; argument
|
D | gconf.c | 465 GtkTextBuffer *buffer; in text_insert_help() local 481 buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text_w)); in text_insert_help() 482 gtk_text_buffer_get_bounds(buffer, &start, &end); in text_insert_help() 483 gtk_text_buffer_delete(buffer, &start, &end); in text_insert_help() 486 gtk_text_buffer_get_end_iter(buffer, &end); in text_insert_help() 487 gtk_text_buffer_insert_with_tags(buffer, &end, prompt, -1, tag1, in text_insert_help() 489 gtk_text_buffer_insert_at_cursor(buffer, " ", 1); in text_insert_help() 490 gtk_text_buffer_get_end_iter(buffer, &end); in text_insert_help() 491 gtk_text_buffer_insert_with_tags(buffer, &end, name, -1, tag1, in text_insert_help() 493 gtk_text_buffer_insert_at_cursor(buffer, "\n\n", 2); in text_insert_help() [all …]
|
/busybox-1.35.0/networking/ssl_helper-wolfssl/ |
D | ssl_helper.c | 135 unsigned char buffer[3072]; 138 wolfSSL_get_chain_cert_pem(chain, i, buffer, sizeof(buffer), &length); 139 buffer[length] = 0; 140 say("cert %d has length %d data = \n%s\n", i, length, buffer);
|
/busybox-1.35.0/loginutils/ |
D | passwd.c | 127 char buffer[256]; in passwd_main() local 157 if (getspnam_r(pw->pw_name, &spw, buffer, sizeof(buffer), &result) != 0 in passwd_main()
|
/busybox-1.35.0/procps/ |
D | ps.c | 182 char *buffer; member 196 #define buffer (G.buffer ) macro 495 buffer = xmalloc(width + 1); /* for trailing \0 */ in alloc_line_buffer() 506 p = buffer; in format_header() 517 printf("%.*s\n", terminal_width, buffer); in format_header() 523 char *p = buffer; in format_process() 541 printf("%.*s\n", terminal_width, buffer); in format_process()
|
/busybox-1.35.0/include/ |
D | libbb.h | 357 #define RESERVE_CONFIG_BUFFER(buffer,len) char buffer[len] argument 358 #define RESERVE_CONFIG_UBUFFER(buffer,len) unsigned char buffer[len] argument 359 #define RELEASE_CONFIG_BUFFER(buffer) ((void)0) argument 362 #define RESERVE_CONFIG_BUFFER(buffer,len) static char buffer[len] argument 363 #define RESERVE_CONFIG_UBUFFER(buffer,len) static unsigned char buffer[len] argument 364 #define RELEASE_CONFIG_BUFFER(buffer) ((void)0) argument 366 #define RESERVE_CONFIG_BUFFER(buffer,len) char *buffer = xmalloc(len) argument 367 #define RESERVE_CONFIG_UBUFFER(buffer,len) unsigned char *buffer = xmalloc(len) argument 368 #define RELEASE_CONFIG_BUFFER(buffer) free(buffer) argument 1904 int64_t read_key(int fd, char *buffer, int timeout) FAST_FUNC; [all …]
|