Searched refs:len (Results 101 - 125 of 208) sorted by relevance

123456789

/system/extras/libpagemap/include/pagemap/
H A Dpagemap.h84 * Length of the array (in sizeof(pid_t) units) is returned through *len.
86 int pm_kernel_pids(pm_kernel_t *ker, pid_t **pids_out, size_t *len);
130 uint64_t **range_out, size_t *len);
145 int pm_process_maps(pm_process_t *proc, pm_map_t ***maps_out, size_t *len);
163 int pm_map_pagemap(pm_map_t *map, uint64_t **pagemap_out, size_t *len);
/system/extras/procrank/
H A Dprocrank.c34 static int getprocname(pid_t pid, char *buf, int len);
59 const int len = read(fd, buffer, sizeof(buffer)-1); local
62 if (len < 0) {
66 buffer[len] = 0;
301 * buf of length len. The size of the buffer must be greater than zero to get
313 static int getprocname(pid_t pid, char *buf, int len) { argument
319 if (len <= 0) {
334 if (fgets(buf, len, f) == NULL) {
350 if (strlcpy(buf, unknown_cmdline, (size_t)len) >= (size_t)len) {
[all...]
/system/bluetooth/tools/
H A Dasocket_test.c139 int len = 0; local
147 len = sizeof(local_addr_un);
151 len = sizeof(local_addr_rc);
155 len = sizeof(local_addr_sco);
159 len = sizeof(local_addr_l2);
163 len = sizeof(local_addr_in);
168 ret = bind(fd, addr, len);
201 int len; local
207 len = sizeof(remote_addr_un);
211 len
240 int len = 0; local
[all...]
H A Dsocktest.c138 int len = 0; local
146 len = sizeof(local_addr_un);
150 len = sizeof(local_addr_rc);
154 len = sizeof(local_addr_sco);
158 len = sizeof(local_addr_l2);
162 len = sizeof(local_addr_in);
167 ret = bind(fd, addr, len);
200 int len; local
206 len = sizeof(remote_addr_un);
210 len
253 int len = 0; local
[all...]
/system/core/toolbox/grep/
H A Dutil.c224 ln.len = 0;
229 ln.off += ln.len + 1;
230 if ((ln.dat = grep_fgetln(f, &ln.len)) == NULL || ln.len == 0)
232 if (ln.len > 0 && ln.dat[ln.len - 1] == line_sep)
233 --ln.len;
295 while (st <= l->len) {
297 pmatch.rm_eo = l->len;
308 l->len,
[all...]
H A Dgrep.h95 size_t len; member in struct:str
107 size_t len; member in struct:__anon481
161 char *grep_fgetln(struct file *f, size_t *len);
/system/core/adb/
H A Dlog_service.c65 entry->msg[entry->len] = '\0';
89 size_t size = sizeof(struct logger_entry) + buf->len;
H A Dadb_auth_client.c82 if (key->key.len != RSANUMWORDS) {
83 D("%s: Invalid key len %d\n", file, key->key.len);
175 void adb_auth_confirm_key(unsigned char *key, size_t len, atransport *t) argument
185 if (key[len - 1] != '\0') {
H A Dusb_linux.c311 static int usb_bulk_write(usb_handle *h, const void *data, int len) argument
323 urb->buffer_length = len;
364 static int usb_bulk_read(usb_handle *h, void *data, int len) argument
375 urb->buffer_length = len;
436 int usb_write(usb_handle *h, const void *_data, int len) argument
447 if(!(len & h->zero_mask)) {
452 while(len > 0) {
453 int xfer = (len > 4096) ? 4096 : len;
462 len
474 usb_read(usb_handle *h, void *_data, int len) argument
[all...]
/system/extras/ext4_utils/
H A Dmake_ext4fs.c242 u32 journal_blocks = DIV_ROUND_UP(info.len, info.block_size) / 64;
257 return DIV_ROUND_UP(info.len, info.block_size) / 4;
262 u32 blocks = DIV_ROUND_UP(info.len, info.block_size);
277 u32 blocks = DIV_ROUND_UP(info.len, info.block_size);
304 int make_ext4fs(const char *filename, s64 len, argument
311 info.len = len;
335 if (info.len <= 0)
336 info.len = get_file_size(fd);
338 if (info.len <
[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/libsysutils/src/
H A DFrameworkListener.cpp47 int len; local
49 len = TEMP_FAILURE_RETRY(read(c->getSocket(), buffer, sizeof(buffer)));
50 if (len < 0) {
53 } else if (!len)
59 for (i = 0; i < len; i++) {
/system/core/sh/
H A Dalias.c104 int len = strlen(val); local
105 ap->val = ckmalloc(len + 2);
106 memcpy(ap->val, val, len);
107 ap->val[len] = ' '; /* fluff */
108 ap->val[len+1] = '\0';
H A Doutput.c308 int len;
413 len = (temp + TEMPSIZE - 1) - p;
416 if (sharp && *f == 'o' && prec <= len)
417 prec = len + 1;
420 size = len;
432 prec -= len;
444 len = strlen(p);
445 if (prec >= 0 && len > prec)
446 len = prec;
447 pad = width - len;
[all...]
/system/core/toolbox/
H A Dnetstat.c83 size_t len = strlen(buf); local
85 snprintf(buf+len, ADDR_LEN-len, ":%d", port);
87 strncat(buf+len, ":*", ADDR_LEN-len-1);
H A Dls.c216 int len; local
218 len = readlink(path, linkto, 256);
219 if(len < 0) return -1;
221 if(len > 255) {
227 linkto[len] = 0;
279 int len; local
281 len = readlink(path, linkto, sizeof(linkto));
282 if(len < 0) return -1;
284 if(len > sizeof(linkto)-1) {
290 linkto[len]
[all...]
H A Dnandread.c34 loff_t start = 0, len = 0; local
67 len = strtoll(optarg, NULL, 0);
82 " -L <len> Length (default 0)\n"
188 end = len ? (start + len) : mtdinfo.size;
231 int len = ecclayout.oobfree[i].length; local
232 if (oob_fixed + len > oobbuf.ptr)
233 len = oobbuf.ptr - oob_fixed;
234 if (len) {
235 memcpy(oob_fixed, oobbuf.ptr + ecclayout.oobfree[i].offset, len);
[all...]
/system/core/fs_mgr/
H A Dfs_mgr.c234 int len; local
252 len = strlen(line);
253 if (line[len - 1] == '\n') {
254 line[len - 1] = '\0';
279 len = strlen(line);
280 if (line[len - 1] == '\n') {
281 line[len - 1] = '\0';
417 int len; local
419 len = strlen(n) - 1;
420 while ((*(n + len)
[all...]
/system/core/libcutils/
H A Dsched_policy.c177 size_t len; local
197 len = strlen(grp);
198 grp[len-1] = '\0'; /* Drop the trailing '\n' */
200 if (bufLen <= len) {
201 len = bufLen - 1;
203 strncpy(buf, grp, len);
204 buf[len] = '\0';
H A Drecord_stream.c76 size_t len; local
84 len = ntohl(*((uint32_t *)p_begin));
86 p_ret = p_begin + HEADER_SIZE + len;
/system/extras/libpagemap/
H A Dpm_process.c96 uint64_t **range_out, size_t *len) {
102 if (!proc || (low >= high) || !range_out || !len)
121 *len = 0;
132 *len = numpages;
137 int pm_process_maps(pm_process_t *proc, pm_map_t ***maps_out, size_t *len) { argument
140 if (!proc || !maps_out || !len)
154 *len = proc->num_maps;
94 pm_process_pagemap_range(pm_process_t *proc, unsigned long low, unsigned long high, uint64_t **range_out, size_t *len) argument
/system/core/fastboot/
H A Dusb_osx.c470 int usb_read(usb_handle *h, void *data, int len) { argument
472 UInt32 numBytes = len;
474 if (len == 0) {
504 int usb_write(usb_handle *h, const void *data, int len) { argument
507 if (len == 0) {
527 h->interface, h->bulkOut, (void *)data, len);
534 int lenRemaining = len;
552 if(!(len & h->zero_mask)) {
564 return len;
/system/extras/showmap/
H A Dshowmap.c31 int len = strlen(name); local
32 return len >= 4 && name[0] == '/'
33 && name[len - 3] == '.' && name[len - 2] == 's' && name[len - 1] == 'o';
168 int len; local
178 len = strlen(line);
179 if (line[len - 1] == '\n') {
180 line[--len] = 0;
/system/bluetooth/brfpatch/
H A Dbrfpatch.c54 static void dump_record(FILE *fpo, unsigned short opcode, unsigned char len, argument
60 fwrite(&len, 1, 1, fpo); // data length
61 fwrite(data, len, 1, fpo); // data
/system/core/init/
H A Dueventd.c150 int len = strlen(name); local
151 if (name[len - 1] == '*') {
153 name[len - 1] = '\0';

Completed in 2961 milliseconds

123456789