Searched defs:len (Results 126 - 150 of 158) sorted by relevance

1234567

/system/core/debuggerd/
H A Dtombstone.c178 size_t len = strlen(threadname); local
179 if (len && threadname[len - 1] == '\n') {
180 threadname[len - 1] = '\0';
/system/core/fastboot/
H A Dengine.c307 info.len = image->partition_size;
435 int len; local
439 int len = strlen(val); local
442 if ((len > 1) && (val[len-1] == '*')) {
443 len--;
444 match = !strncmp(val, str, len);
/system/core/init/
H A Dbuiltins.c59 int fd, ret, len; local
66 len = strlen(value);
69 ret = write(fd, value, len);
H A Ddevices.c508 static const char *parse_device_name(struct uevent *uevent, unsigned int len) argument
523 if(strlen(name) > len)
H A Dinit_parser.c173 static int push_chars(char **dst, int *len, const char *chars, int cnt) argument
175 if (cnt > *len)
180 *len -= cnt;
H A Dinit.c92 int len = strlen(name); local
93 if ((len + 10) > PROP_NAME_MAX)
112 size_t len = strlen(key) + strlen(val) + 2; local
113 char *entry = malloc(len);
114 snprintf(entry, len, "%s=%s", key, val);
633 int len = snprintf( buff, sizeof(buff), "ro.kernel.%s", name ); local
635 if (len < (int)sizeof(buff))
828 int audit_callback(void *data, security_class_t cls, char *buf, size_t len) argument
830 snprintf(buf, len, "property=%s", !data ? "NULL" : (char *)data);
/system/core/logcat/
H A Dlogcat.cpp152 size_t size = sizeof(logger_entry) + buf->len;
170 //printf(">>> pri=%d len=%d msg='%s'\n",
299 else if (entry->entry.len != ret - sizeof(struct logger_entry)) {
301 entry->entry.len, ret - sizeof(struct logger_entry));
305 entry->entry.msg[entry->entry.len] = '\0';
632 int len; local
635 len = q - p;
637 len = strlen(p);
639 len = snprintf( devname, sizeof(devname), "/dev/%.*s", len,
[all...]
/system/core/sh/
H A Deval.c617 size_t len; local
618 if (sysctl(mib, 2, 0, &len, 0, 0) != -1 &&
619 (sys_path = ckmalloc(len + 5)) != NULL &&
620 sysctl(mib, 2, sys_path + 5, &len, 0, 0) != -1) {
H A Djobs.c1221 int len; local
1225 len = sizeof(ps->cmd);
1227 len = sizeof(ps->cmd) / 10;
1228 cmdnleft = len;
1231 char *p = ps->cmd + len - 4;
H A Dvar.c225 int len; local
246 len = namelen + 2; /* 2 is space for '=' and '\0' */
250 len += strlen(val);
252 d = nameeq = ckmalloc(len);
800 int len; local
807 len = p - name;
810 *lenp = len;
816 if (vp->name_len != len)
818 if (memcmp(vp->text, name, len) != 0)
H A Dexpand.c1274 int len; local
1277 len = 0;
1279 len++;
1280 return msort(str, len);
1285 msort(struct strlist *list, int len) argument
1292 if (len <= 1)
1294 half = len >> 1;
1302 p = msort(p, len - half); /* sort second half */
1545 size_t len; local
1550 for (i = 1, len
[all...]
H A Dparser.c912 int len; local
1134 len = out - stackblock();
1139 && len <= 2
1149 grabstackblock(len);
/system/core/toolbox/
H A Ddd.c566 bwrite(int fd, const void *buf, size_t len) argument
573 rv = write(fd, buf, len);
H A Dnewfs_msdos.c740 size_t len; local
748 len = strlen(_PATH_DEV);
750 if (!strncmp(s1, _PATH_DEV, len))
751 s1 += len;
755 if (!strncmp(s2, _PATH_DEV, len))
756 s2 += len;
1047 setstr(u_int8_t *dest, const char *src, size_t len) argument
1049 while (len--)
/system/core/toolbox/grep/
H A Dgrep.c226 add_pattern(char *pat, size_t len) argument
237 if (len > 0 && pat[len - 1] == '\n')
238 --len;
240 pattern[patterns] = grep_malloc(len + 1);
241 memcpy(pattern[patterns], pat, len);
242 pattern[patterns][len] = '\0';
290 size_t len; local
296 len = 0;
298 while ((rlen = getline(&line, &len,
[all...]
/system/extras/ext4_utils/
H A Dallocate.c40 u32 len; member in struct:region
116 reg->bg * info.blocks_per_group + reg->block + reg->len - 1,
117 reg->len);
132 u32 block, u32 len, int bg_num)
137 reg->len = len;
244 /* Reduces an existing allocation by len blocks by return the last blocks
247 void reduce_allocation(struct block_allocation *alloc, u32 len) argument
249 while (len) {
252 if (last_reg->len > le
131 append_region(struct block_allocation *alloc, u32 block, u32 len, int bg_num) argument
332 ext4_allocate_blocks_from_block_group(u32 len, int bg_num) argument
349 ext4_allocate_contiguous_blocks(u32 len) argument
385 ext4_allocate_partial(u32 len) argument
423 ext4_allocate_multiple_contiguous_blocks(u32 len) argument
449 do_allocate(u32 len) argument
467 allocate_blocks(u32 len) argument
534 get_region(struct block_allocation *alloc, u32 *block, u32 *len) argument
564 do_split_allocation(struct block_allocation *alloc, u32 len) argument
601 split_allocation(struct block_allocation *alloc, u32 len) argument
663 append_oob_allocation(struct block_allocation *alloc, u32 len) argument
[all...]
H A Dext4fixup.c125 int ret, len; local
132 len = read(fd, &magic, sizeof(magic));
133 if (len != sizeof(magic)) {
157 int len; local
181 len = write(fd, &magic, sizeof(magic));
182 if (len != sizeof(magic)) {
223 ret = lseek64(fd, info.len, SEEK_SET);
239 printf(" Size: %llu\n", info.len);
262 int len; local
274 len
285 unsigned int len; local
304 unsigned int len; local
[all...]
/system/core/adb/
H A Dadb.c115 int len, tagn; local
121 len = q - p;
127 if (len == taglen && !memcmp(tags[tagn].tag, p, len) )
298 size_t len;
300 len = snprintf(buf, remaining, "%s::", adb_device_banner);
301 remaining -= len;
302 buf += len;
306 len = snprintf(buf, remaining, "%s=%s;", cnxn_props[i], value);
307 remaining -= len;
[all...]
H A Dadb.h63 unsigned len; member in struct:apacket
448 int usb_write(usb_handle *h, const void *data, int len);
449 int usb_read(usb_handle *h, void *data, int len);
H A Dcommandline.c230 int len; local
234 len = adb_read(fd, buf, 4096);
235 D("read_and_dump(): post adb_read(fd=%d): len=%d\n", fd, len);
236 if(len == 0) {
240 if(len < 0) {
244 fwrite(buf, 1, len, stdout);
252 int len; local
257 len = adb_read(inFd, buf, BUFSIZE);
258 if (len
[all...]
H A Dtransport.c39 static void dump_hex( const unsigned char* ptr, size_t len )
41 int nn, len2 = len;
101 int len = p->msg.data_length; local
130 D("%s: %s: [%s] arg0=%s arg1=%s (len=%d) ",
131 name, func, cmd, arg0, arg1, len);
132 dump_hex(p->data, len);
141 int len = sizeof(*ppacket); local
147 while(len > 0) {
148 r = adb_read(fd, p, len);
150 len
171 int r, len = sizeof(ppacket); local
371 int len; local
460 int len; local
495 int len; local
526 int len = sizeof(*m); local
548 int len = sizeof(*m); local
898 size_t len; local
928 size_t len, remaining = bufsize; local
950 int len; local
1094 readx(int fd, void *ptr, size_t len) argument
1126 writex(int fd, const void *ptr, size_t len) argument
[all...]
/system/core/charger/
H A Dcharger.c205 int len; local
216 len = min(sz, LAST_KMSG_MAX_SZ);
217 ptr = buf + (sz - len);
219 while (len > 0) {
220 int cnt = min(len, MAX_KLOG_WRITE_BUF_SZ);
233 len -= cnt;
/system/core/libnetutils/
H A Difc_utils.c249 int ifindex, s, len, ret; local
320 len = recv(s, buf, sizeof(buf), 0);
322 if (len < 0) {
328 if (!NLMSG_OK(nh, (unsigned) len) || nh->nlmsg_type != NLMSG_ERROR) {
/system/core/libsparse/
H A Doutput_file.c78 int (*write_data_chunk)(struct output_file *out, unsigned int len,
80 int (*write_fill_chunk)(struct output_file *out, unsigned int len,
82 int (*write_skip_chunk)(struct output_file *out, int64_t len);
94 int64_t len; member in struct:output_file
119 int (*write)(void *priv, const void *buf, int len);
146 static int file_pad(struct output_file *out, int64_t len) argument
151 ret = ftruncate64(outn->fd, len);
159 static int file_write(struct output_file *out, void *data, int len) argument
164 ret = write(outn->fd, data, len);
168 } else if (ret < len) {
218 gz_file_pad(struct output_file *out, int64_t len) argument
242 gz_file_write(struct output_file *out, void *data, int len) argument
298 callback_file_pad(struct output_file *out, int64_t len) argument
303 callback_file_write(struct output_file *out, void *data, int len) argument
326 read_all(int fd, void *buf, size_t len) argument
374 write_sparse_fill_chunk(struct output_file *out, unsigned int len, uint32_t fill_val) argument
410 write_sparse_data_chunk(struct output_file *out, unsigned int len, void *data) argument
484 write_normal_data_chunk(struct output_file *out, unsigned int len, void *data) argument
502 write_normal_fill_chunk(struct output_file *out, unsigned int len, uint32_t fill_val) argument
527 write_normal_skip_chunk(struct output_file *out, int64_t len) argument
552 output_file_init(struct output_file *out, int block_size, int64_t len, bool sparse, int chunks, bool crc) argument
641 output_file_open_callback(int (*write)(void *, const void *, int), void *priv, unsigned int block_size, int64_t len, int gz, int sparse, int chunks, int crc) argument
667 output_file_open_fd(int fd, unsigned int block_size, int64_t len, int gz, int sparse, int chunks, int crc) argument
691 write_data_chunk(struct output_file *out, unsigned int len, void *data) argument
697 write_fill_chunk(struct output_file *out, unsigned int len, uint32_t fill_val) argument
703 write_fd_chunk(struct output_file *out, unsigned int len, int fd, int64_t offset) argument
752 write_file_chunk(struct output_file *out, unsigned int len, const char *file, int64_t offset) argument
769 write_skip_chunk(struct output_file *out, int64_t len) argument
[all...]
/system/core/sdcard/
H A Dsdcard.c440 hdr.len = sizeof(hdr);
446 static void fuse_reply(struct fuse *fuse, __u64 unique, void *data, int len) argument
452 hdr.len = len + sizeof(hdr);
459 vec[1].iov_len = len;
1162 ssize_t len = read(fuse->fd, local
1164 if (len < 0) {
1171 if ((size_t)len < sizeof(struct fuse_in_header)) {
1172 ERROR("[%d] request too short: len=%zu\n", handler->token, (size_t)len);
[all...]

Completed in 235 milliseconds

1234567