Searched refs:len (Results 1 - 25 of 188) sorted by relevance

12345678

/system/core/adb/
H A Dtransport.h24 int readx(int fd, void *ptr, size_t len);
25 int writex(int fd, const void *ptr, size_t len);
H A Dtest_track_devices.c17 unix_write( int fd, const char* buf, int len )
20 while (len > 0) {
21 int len2 = write(fd, buf, len);
28 len -= len2;
35 unix_read( int fd, char* buf, int len )
38 while (len > 0) {
39 int len2 = read(fd, buf, len);
46 len -= len2;
59 int len; local
71 len
[all...]
H A Dtest_track_jdwp.c17 unix_write( int fd, const char* buf, int len )
20 while (len > 0) {
21 int len2 = write(fd, buf, len);
28 len -= len2;
35 unix_read( int fd, char* buf, int len )
38 while (len > 0) {
39 int len2 = read(fd, buf, len);
46 len -= len2;
59 int len; local
71 len
[all...]
/system/core/liblinenoise/
H A Dlinenoise.h39 int linenoiseHistorySetMaxLen(int len);
H A Dlinenoise.c187 static void refreshLine(int fd, const char *prompt, char *buf, size_t len, size_t pos, size_t cols) { argument
193 len--;
196 while (plen+len > cols) {
197 len--;
205 if (write(fd,buf,len) == -1) return;
217 size_t len = 0; local
235 if (nread <= 0) return len;
240 return len;
243 return (len == 0) ? -1 : (int)len;
392 size_t len; local
431 linenoiseHistorySetMaxLen(int len) argument
[all...]
/system/extras/ext4_utils/
H A Dwipe.h20 int wipe_block_device(int fd, s64 len);
H A Dbacked_block.h23 typedef void (*data_block_callback_t)(void *priv, u64 off, u8 *data, int len);
24 typedef void (*data_block_fill_callback_t)(void *priv, u64 off, u32 fill_val, int len);
27 int len);
29 void queue_data_block(u8 *data, u32 len, u32 block);
30 void queue_fill_block(u32 fill_val, u32 len, u32 block);
31 void queue_data_file(const char *filename, off64_t offset, u32 len,
H A Dindirect.h22 void inode_allocate_indirect(struct ext4_inode *inode, unsigned long len);
23 u8 *inode_allocate_data_indirect(struct ext4_inode *inode, unsigned long len,
H A Dextent.h23 void inode_allocate_extents(struct ext4_inode *inode, u64 len);
24 void inode_allocate_file_extents(struct ext4_inode *inode, u64 len,
26 u8 *inode_allocate_data_extents(struct ext4_inode *inode, u64 len,
H A Dindirect.c43 u32 len; local
46 len = min(region_len * info.block_size, backing_len);
48 queue_data_block(ptr, len, region_block);
49 ptr += len;
50 backing_len -= len;
56 static void reserve_indirect_block(struct block_allocation *alloc, int len) argument
63 if (advance_blocks(alloc, len)) {
64 error("failed to advance %d blocks", len);
69 static void reserve_dindirect_block(struct block_allocation *alloc, int len) argument
76 while (len >
86 reserve_tindirect_block(struct block_allocation *alloc, int len) argument
102 fill_indirect_block(u32 *ind_block, int len, struct block_allocation *alloc) argument
110 fill_dindirect_block(u32 *dind_block, int len, struct block_allocation *alloc) argument
139 fill_tindirect_block(u32 *tind_block, int len, struct block_allocation *alloc) argument
168 int len = min(*block_len, EXT4_NDIR_BLOCKS); local
191 int len = min(*block_len, aux_info.blocks_per_ind); local
222 int len = min(*block_len, aux_info.blocks_per_dind); local
253 int len = min(*block_len, aux_info.blocks_per_tind); local
277 reserve_all_indirect_blocks(struct block_allocation *alloc, u32 len) argument
309 indirect_blocks_needed(u32 len) argument
399 inode_allocate_indirect(struct ext4_inode *inode, unsigned long len) argument
483 inode_allocate_data_indirect(struct ext4_inode *inode, unsigned long len, unsigned long backing_len) argument
[all...]
H A Doutput_file.h26 void write_data_block(struct output_file *out, u64 off, u8 *data, int len);
27 void write_fill_block(struct output_file *out, u64 off, u32 fill_val, int len);
29 off64_t offset, int len);
30 void pad_output_file(struct output_file *out, u64 len);
H A Dwipe.c33 int wipe_block_device(int fd, s64 len) argument
39 range[1] = len;
43 range[1] = len;
57 int wipe_block_device(int fd, s64 len) argument
H A Doutput_file.c77 static int file_write(struct output_file *out, u8 *data, int len) argument
80 ret = write(out->fd, data, len);
84 } else if (ret < len) {
118 static int gz_file_write(struct output_file *out, u8 *data, int len) argument
121 ret = gzwrite(out->gz_fd, data, len);
125 } else if (ret < len) {
186 static int write_chunk_fill(struct output_file *out, u64 off, u32 fill_val, int len) argument
201 //DBG printf("write chunk: offset 0x%llx, length 0x%x bytes\n", off, len);
225 rnd_up_len = (len + (info.block_size - 1)) & (~(info.block_size -1));
259 static int write_chunk_raw(struct output_file *out, u64 off, u8 *data, int len) argument
437 pad_output_file(struct output_file *out, u64 len) argument
474 write_data_block(struct output_file *out, u64 off, u8 *data, int len) argument
498 write_fill_block(struct output_file *out, u64 off, u32 fill_val, int len) argument
536 write_data_file(struct output_file *out, u64 off, const char *file, off64_t offset, int len) argument
[all...]
H A Dextent.c40 u32 len; local
43 len = min(region_len * info.block_size, backing_len);
45 queue_data_block(ptr, len, region_block);
46 ptr += len;
47 backing_len -= len;
62 u32 len; local
65 len = min(region_len * info.block_size, backing_len);
67 queue_data_file(filename, offset, len, region_block);
68 offset += len;
69 backing_len -= len;
73 do_inode_allocate_extents( struct ext4_inode *inode, u64 len) argument
178 inode_allocate_data_extents(struct ext4_inode *inode, u64 len, u64 backing_len) argument
203 inode_allocate_file_extents(struct ext4_inode *inode, u64 len, const char *filename) argument
220 inode_allocate_extents(struct ext4_inode *inode, u64 len) argument
[all...]
/system/core/libcutils/
H A Duio.c28 int len = vecs->iov_len; local
30 while (len > 0) {
31 int ret = read( fd, buf, len );
42 len -= ret;
55 int len = (int)vecs->iov_len; local
57 while (len > 0) {
58 int ret = write( fd, buf, len );
69 len -= ret;
H A Dstrdup16to8.c29 extern size_t strnlen16to8(const char16_t* utf16Str, size_t len) argument
34 * potentially be as big as 3*len, which will overflow
35 * for len > SIZE_MAX/3.
43 * dst = malloc(strnlen16to8(utf16,len)+1)
55 /* Fast path for the usual case where 3*len is < SIZE_MAX-1.
57 if (len < (SIZE_MAX-1)/3) {
58 while (len--) {
72 while (len--) {
102 * not just "len".
107 extern char* strncpy16to8(char* utf8Str, const char16_t* utf16Str, size_t len) argument
146 size_t len; local
[all...]
H A Dproperties.c41 int len; local
43 len = __system_property_get(key, value);
44 if(len > 0) {
45 return len;
49 len = strlen(default_value);
50 memcpy(value, default_value, len + 1);
52 return len;
141 int len = -1; local
150 len = strlen(value);
152 return len;
264 int len; local
298 int len; local
[all...]
H A Dprocess_name.c43 int len = strlen(new_name); local
44 char* copy = (char*) malloc(len + 1);
49 if (len < 16) {
52 prctl(PR_SET_NAME, (unsigned long) new_name + len - 15, 0, 0, 0);
/system/extras/fatblock/
H A Dread.c29 offset_t off, offset_t len)
35 memset(out, 0, len);
39 if (off + len > buf_len) {
40 memset(out + (buf_len - off), 0, len - (buf_len - off));
41 len = buf_len - off;
45 assert(off + len <= buf_len);
47 memcpy(out, buf + off, len);
72 static int file_read(struct file *f, char *buf, offset_t off, offset_t len) argument
84 f->path, off, len);
88 if (off + len > UINT32_MA
28 buffer_read(char *buf, offset_t buf_len, char *out, offset_t off, offset_t len) argument
126 dir_read(struct dir *d, char *buf, offset_t off, offset_t len) argument
134 extent_read(struct fs *fs, struct extent *e, char *buf, offset_t off, offset_t len) argument
161 fs_read(struct fs *fs, char *buf, offset_t start, offset_t len) argument
[all...]
/system/core/toolbox/
H A Dsendevent.c25 #define EVIOCGNAME(len) _IOC(_IOC_READ, 'E', 0x06, len) /* get device name */
26 #define EVIOCGPHYS(len) _IOC(_IOC_READ, 'E', 0x07, len) /* get physical location */
27 #define EVIOCGUNIQ(len) _IOC(_IOC_READ, 'E', 0x08, len) /* get unique identifier */
29 #define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len) /* get global keystate */
30 #define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len) /* ge
[all...]
H A Dgetsebool.c17 int i, get_all = 0, rc = 0, active, pending, len = 0, opt; local
31 rc = security_get_boolean_names(&names, &len);
38 if (!len) {
53 if (!len) {
56 len = argc - 1;
57 names = malloc(sizeof(char *) * len);
62 for (i = 0; i < len; i++) {
72 for (i = 0; i < len; i++) {
100 for (i = 0; i < len; i++)
H A Dsmd.c9 int fd, len, r, port = 0; local
28 len = strlen(argv[0]);
29 r = write(fd, argv[0], len);
30 if(r != len) {
/system/core/include/mincrypt/
H A Drsa.h41 int len; /* Length of n[] in number of uint32_t */ member in struct:RSAPublicKey
49 const int len,
/system/core/libcorkscrew/
H A Ddemangle.c24 extern char *__cxa_demangle (const char *mangled, char *buf, size_t *len,
/system/core/fastboot/
H A Dusb.h62 int usb_read(usb_handle *h, void *_data, int len);
63 int usb_write(usb_handle *h, const void *_data, int len);

Completed in 195 milliseconds

12345678