Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 151) sorted by relevance

1234567

/busybox-1.35.0/libbb/
Dcopyfd.c29 static off_t bb_full_fd_action(int src_fd, int dst_fd, off_t size) in bb_full_fd_action() argument
43 if (size < 0) { in bb_full_fd_action()
44 size = -size; in bb_full_fd_action()
54 if (!size) { in bb_full_fd_action()
55 size = SENDFILE_BIGBUF; in bb_full_fd_action()
66 size > sendfile_sz ? sendfile_sz : size); in bb_full_fd_action()
74 if (size > 0 && size <= 4 * 1024) in bb_full_fd_action()
88 size > buffer_size ? buffer_size : size); in bb_full_fd_action()
111 size -= rd; in bb_full_fd_action()
112 if (!size) { in bb_full_fd_action()
[all …]
Dread_printf.c107 size_t size, rd_size; in xmalloc_read_with_initial_buf() local
118 size = (st.st_size | 0x3ff) + 1; in xmalloc_read_with_initial_buf()
121 if (to_read < size) in xmalloc_read_with_initial_buf()
122 size = to_read; in xmalloc_read_with_initial_buf()
123 buf = xrealloc(buf, total + size + 1); in xmalloc_read_with_initial_buf()
124 rd_size = full_read(fd, buf + total, size); in xmalloc_read_with_initial_buf()
130 if (rd_size < size) /* EOF */ in xmalloc_read_with_initial_buf()
136 size = ((total / 8) | 0x3ff) + 1; in xmalloc_read_with_initial_buf()
137 if (size > 64*1024) in xmalloc_read_with_initial_buf()
138 size = 64*1024; in xmalloc_read_with_initial_buf()
[all …]
Dsafe_strncpy.c12 char* FAST_FUNC safe_strncpy(char *dst, const char *src, size_t size) in safe_strncpy() argument
14 if (!size) return dst; in safe_strncpy()
15 dst[--size] = '\0'; in safe_strncpy()
16 return strncpy(dst, src, size); in safe_strncpy()
Dread.c64 ssize_t FAST_FUNC read_close(int fd, void *buf, size_t size) in read_close() argument
67 size = full_read(fd, buf, size); in read_close()
71 return size; in read_close()
74 ssize_t FAST_FUNC open_read_close(const char *filename, void *buf, size_t size) in open_read_close() argument
79 return read_close(fd, buf, size); in open_read_close()
/busybox-1.35.0/scripts/
Dcheckstack.pl133 my $size = $1;
134 $size = hex($size) if ($size =~ /^0x/);
136 if ($size > 0xf0000000) {
137 $size = - $size;
138 $size += 0x80000000;
139 $size += 0x80000000;
141 next if ($size > 0x10000000);
155 next if ($size < 100);
156 push @stack, "$intro$size\n";
159 my $size = "Dynamic ($1)";
[all …]
/busybox-1.35.0/procps/
Dps.c173 void (*f)(char *buf, int size, const procps_status_t *ps);
211 static void func_user(char *buf, int size, const procps_status_t *ps) in func_user() argument
214 safe_strncpy(buf, get_cached_username(ps->uid), size+1); in func_user()
223 if (strlen(user) <= size) in func_user()
224 safe_strncpy(buf, user, size+1); in func_user()
226 sprintf(buf, "%*u", size, (unsigned)ps->uid); in func_user()
230 static void func_group(char *buf, int size, const procps_status_t *ps) in func_group() argument
232 safe_strncpy(buf, get_cached_groupname(ps->gid), size+1); in func_group()
235 static void func_comm(char *buf, int size, const procps_status_t *ps) in func_comm() argument
237 safe_strncpy(buf, ps->comm, size+1); in func_comm()
[all …]
/busybox-1.35.0/util-linux/volume_id/
Dunused_nvidia_raid.c31 uint32_t size; member
38 int FAST_FUNC volume_id_probe_nvidia_raid(struct volume_id *id, uint64_t off, uint64_t size) in volume_id_probe_nvidia_raid() argument
44 (unsigned long long) off, (unsigned long long) size); in volume_id_probe_nvidia_raid()
46 if (size < 0x10000) in volume_id_probe_nvidia_raid()
49 meta_off = ((size / 0x200)-2) * 0x200; in volume_id_probe_nvidia_raid()
Dunused_lsi_raid.c35 int FAST_FUNC volume_id_probe_lsi_mega_raid(struct volume_id *id, uint64_t off, uint64_t size) in volume_id_probe_lsi_mega_raid() argument
41 (unsigned long long) off, (unsigned long long) size); in volume_id_probe_lsi_mega_raid()
43 if (size < 0x10000) in volume_id_probe_lsi_mega_raid()
46 meta_off = ((size / 0x200)-1) * 0x200; in volume_id_probe_lsi_mega_raid()
Dunused_isw_raid.c40 int FAST_FUNC volume_id_probe_intel_software_raid(struct volume_id *id, uint64_t off, uint64_t size) in volume_id_probe_intel_software_raid() argument
46 (unsigned long long) off, (unsigned long long) size); in volume_id_probe_intel_software_raid()
48 if (size < 0x10000) in volume_id_probe_intel_software_raid()
51 meta_off = ((size / 0x200)-2) * 0x200; in volume_id_probe_intel_software_raid()
Dunused_promise_raid.c36 …FAST_FUNC volume_id_probe_promise_fasttrack_raid(struct volume_id *id, uint64_t off, uint64_t size) in volume_id_probe_promise_fasttrack_raid() argument
46 (unsigned long long) off, (unsigned long long) size); in volume_id_probe_promise_fasttrack_raid()
48 if (size < 0x40000) in volume_id_probe_promise_fasttrack_raid()
54 meta_off = ((size / 0x200) - sectors[i]) * 0x200; in volume_id_probe_promise_fasttrack_raid()
Dunused_via_raid.c45 int FAST_FUNC volume_id_probe_via_raid(struct volume_id *id, uint64_t off, uint64_t size) in volume_id_probe_via_raid() argument
51 (unsigned long long) off, (unsigned long long) size); in volume_id_probe_via_raid()
53 if (size < 0x10000) in volume_id_probe_via_raid()
56 meta_off = ((size / 0x200)-1) * 0x200; in volume_id_probe_via_raid()
Dlinux_raid.c38 uint32_t size; member
51 int FAST_FUNC volume_id_probe_linux_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size) in volume_id_probe_linux_raid() argument
60 (unsigned long long) off, (unsigned long long) size); in volume_id_probe_linux_raid()
62 if (size < 0x10000) in volume_id_probe_linux_raid()
65 sboff = (size & ~(MD_RESERVED_BYTES - 1)) - MD_RESERVED_BYTES; in volume_id_probe_linux_raid()
Dunused_silicon_raid.c50 int FAST_FUNC volume_id_probe_silicon_medley_raid(struct volume_id *id, uint64_t off, uint64_t size) in volume_id_probe_silicon_medley_raid() argument
56 (unsigned long long) off, (unsigned long long) size); in volume_id_probe_silicon_medley_raid()
58 if (size < 0x10000) in volume_id_probe_silicon_medley_raid()
61 meta_off = ((size / 0x200)-1) * 0x200; in volume_id_probe_silicon_medley_raid()
Dunused_highpoint.c67 int FAST_FUNC volume_id_probe_highpoint_45x_raid(struct volume_id *id, uint64_t off, uint64_t size) in volume_id_probe_highpoint_45x_raid() argument
74 (unsigned long long) off, (unsigned long long) size); in volume_id_probe_highpoint_45x_raid()
76 if (size < 0x10000) in volume_id_probe_highpoint_45x_raid()
79 meta_off = ((size / 0x200)-11) * 0x200; in volume_id_probe_highpoint_45x_raid()
/busybox-1.35.0/miscutils/
Dflash_lock_unlock.c75 lock.length = info.size; in flash_lock_unlock_main()
77 unsigned long size = info.size - info.erasesize; in flash_lock_unlock_main() local
78 if (offset > size) { in flash_lock_unlock_main()
80 offset, size); in flash_lock_unlock_main()
84 sectors = info.size / info.erasesize; in flash_lock_unlock_main()
87 unsigned long num = info.size / info.erasesize; in flash_lock_unlock_main()
/busybox-1.35.0/archival/libarchive/unxz/
Dxz_dec_bcj.c60 size_t size; member
89 struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_x86() argument
104 if (size <= 4) in bcj_x86()
107 size -= 4; in bcj_x86()
108 for (i = 0; i < size; ++i) { in bcj_x86()
162 struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_powerpc() argument
167 for (i = 0; i + 4 <= size; i += 4) { in bcj_powerpc()
184 struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_ia64() argument
225 for (i = 0; i + 16 <= size; i += 16) { in bcj_ia64()
269 struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_arm() argument
[all …]
Dxz_config.h27 #define kmalloc(size, flags) malloc(size) argument
29 #define vmalloc(size) malloc(size) argument
32 #define memeq(a, b, size) (memcmp(a, b, size) == 0) argument
33 #define memzero(buf, size) memset(buf, 0, size) argument
/busybox-1.35.0/archival/libarchive/
Dget_header_ar.c32 unsigned size; in get_header_ar() local
63 typed->size = size = read_num(ar.formatted.size, 10, in get_header_ar()
64 sizeof(ar.formatted.size)); in get_header_ar()
71 archive_handle->offset += size; in get_header_ar()
80 archive_handle->ar__long_name_size = size; in get_header_ar()
82 archive_handle->ar__long_names = xzalloc(size + 1); in get_header_ar()
83 xread(archive_handle->src_fd, archive_handle->ar__long_names, size); in get_header_ar()
84 archive_handle->offset += size; in get_header_ar()
141 archive_handle->offset += typed->size; in get_header_ar()
Dget_header_cpio.c26 unsigned size, uid, gid, mtime; in get_header_cpio() local
31 size = full_read(archive_handle->src_fd, cpio_header, 110); in get_header_cpio()
32 if (size == 0) { in get_header_cpio()
35 if (size != 110) { in get_header_cpio()
52 &nlink, &mtime, &size, in get_header_cpio()
64 file_header->size = size; in get_header_cpio()
92 file_header->size &= 0x1fff; /* paranoia: limit names to 8k chars */ in get_header_cpio()
93 file_header->link_target = xzalloc(file_header->size + 1); in get_header_cpio()
94 xread(archive_handle->src_fd, file_header->link_target, file_header->size); in get_header_cpio()
95 archive_handle->offset += file_header->size; in get_header_cpio()
[all …]
/busybox-1.35.0/coreutils/
Duuencode.c65 size_t size = full_read(src_fd, src_buf, SRC_BUF_SIZE); in uuencode_main() local
66 if (!size) in uuencode_main()
68 if ((ssize_t)size < 0) in uuencode_main()
71 bb_uuencode(dst_buf, src_buf, size, tbl); in uuencode_main()
74 bb_putchar(tbl[size]); in uuencode_main()
77 xwrite(STDOUT_FILENO, dst_buf, 4 * ((size + 2) / 3)); in uuencode_main()
Duudecode.c315 size_t size = full_read(src_fd, src_buf, SRC_BUF_SIZE); in baseNUM_main() local
316 if ((ssize_t)size < 0) in baseNUM_main()
318 if (size == 0) { in baseNUM_main()
325 bb_b32encode(dst_buf, src_buf, size); in baseNUM_main()
326 size = 8 * ((size + 4) / 5); in baseNUM_main()
328 bb_uuencode(dst_buf, src_buf, size, bb_uuenc_tbl_base64); in baseNUM_main()
329 size = 4 * ((size + 2) / 3); in baseNUM_main()
339 int out = size < rem ? size : rem; in baseNUM_main()
344 size -= out; in baseNUM_main()
345 if (size == 0) in baseNUM_main()
Dshred.c86 off_t size = sb.st_size; in shred_main() local
89 size = BB_STRTOOFF(opt_s, NULL, 0); /* accepts oct/hex */ in shred_main()
90 if (errno || size < 0) bb_show_usage(); in shred_main()
94 bb_copyfd_size(rand_fd, fd, size); in shred_main()
99 bb_copyfd_size(zero_fd, fd, size); in shred_main()
/busybox-1.35.0/mailutils/
Dmail.c145 size_t size; in encode_n_base64() local
147 size = fread((char *)src_buf, 1, SRC_BUF_SIZE, fp); in encode_n_base64()
148 if ((ssize_t)size < 0) in encode_n_base64()
151 size = len; in encode_n_base64()
153 size = SRC_BUF_SIZE; in encode_n_base64()
155 if (!size) in encode_n_base64()
158 bb_uuencode(dst_buf, src_buf, size, bb_uuenc_tbl_base64); in encode_n_base64()
162 src_buf += size; in encode_n_base64()
163 len -= size; in encode_n_base64()
165 fwrite(dst_buf, 1, 4 * ((size + 2) / 3), stdout); in encode_n_base64()
/busybox-1.35.0/archival/
Dchksum_and_xwrite_tar_header.c18 unsigned int chksum, size; in chksum_and_xwrite_tar_header() local
30 size = sizeof(*hp); in chksum_and_xwrite_tar_header()
31 do { chksum += *cp++; } while (--size); in chksum_and_xwrite_tar_header()
/busybox-1.35.0/scripts/kconfig/
Dzconf.l49 void append_string(const char *str, int size) in append_string() argument
51 int new_size = text_size + size + 1; in append_string()
52 if (size > 70) { in append_string()
62 memcpy(text + text_size, str, size); in append_string()
63 text_size += size; in append_string()
67 void alloc_string(const char *str, int size) in alloc_string() argument
69 text = malloc(size + 1); in alloc_string()
70 memcpy(text, str, size); in alloc_string()
71 text[size] = 0; in alloc_string()

1234567