Home
last modified time | relevance | path

Searched refs:to_read (Results 1 – 12 of 12) sorted by relevance

/external/vboot_reference/futility/
Ddump_kernel_config_lib.c34 ssize_t to_read = count - nr_read; in ReadFullyWithRead() local
35 ssize_t chunk = read(fd, buf + nr_read, to_read); in ReadFullyWithRead()
60 ssize_t to_read = count - nr_skipped; in SkipWithRead() local
61 if (to_read > sizeof(buf)) { in SkipWithRead()
62 to_read = sizeof(buf); in SkipWithRead()
64 if (read_fn(ctx, buf, to_read) != to_read) { in SkipWithRead()
67 nr_skipped += to_read; in SkipWithRead()
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/
Ddevshell.py85 to_read = int(len_str) - len(json_str)
86 if to_read > 0:
87 json_str += sock.recv(to_read, socket.MSG_WAITALL).decode()
/external/vboot_reference/cgpt/
Dcgpt_nor.c122 size_t to_read = size - copied; in read_write() local
123 if (to_read > bufsize) { in read_write()
124 to_read = bufsize; in read_write()
126 nr_read = read(source_fd, buf, to_read); in read_write()
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/tests/
Dtest_devshell.py69 to_read = n-len(extra)
70 if to_read > 0:
71 resp_buffer += s.recv(to_read, socket.MSG_WAITALL)
/external/libvpx/libvpx/examples/
Dvp8_multi_resolution_encoder.c74 size_t nbytes, to_read; in read_frame() local
77 to_read = img->w*img->h*3/2; in read_frame()
78 nbytes = fread(img->planes[0], 1, to_read, f); in read_frame()
79 if(nbytes != to_read) { in read_frame()
88 size_t nbytes, to_read; in read_frame_by_row() local
117 to_read = w; in read_frame_by_row()
119 nbytes = fread(ptr, 1, to_read, f); in read_frame_by_row()
120 if(nbytes != to_read) { in read_frame_by_row()
/external/dbus/tools/
Ddbus-launch.c242 size_t to_read; in read_line() local
245 to_read = maxlen - bytes; in read_line()
247 if (to_read == 0) in read_line()
252 to_read); in read_line()
295 size_t to_read; in read_pid() local
298 to_read = sizeof (pid_t) - bytes; in read_pid()
300 if (to_read == 0) in read_pid()
305 to_read); in read_pid()
/external/pdfium/third_party/libtiff/
Dtif_read.c52 tmsize_t cc, to_read; in TIFFFillStripPartial() local
116 to_read = tif->tif_rawdatasize - unused_data; in TIFFFillStripPartial()
117 if( (uint64) to_read > td->td_stripbytecount[strip] in TIFFFillStripPartial()
120 to_read = (tmsize_t) td->td_stripbytecount[strip] in TIFFFillStripPartial()
125 cc = TIFFReadFile(tif, tif->tif_rawdata + unused_data, to_read); in TIFFFillStripPartial()
127 if (cc != to_read) { in TIFFFillStripPartial()
133 (unsigned __int64) to_read); in TIFFFillStripPartial()
139 (unsigned long long) to_read); in TIFFFillStripPartial()
145 tif->tif_rawdataloaded = unused_data + to_read; in TIFFFillStripPartial()
152 TIFFReverseBits(tif->tif_rawdata + unused_data, to_read ); in TIFFFillStripPartial()
/external/dbus/dbus/
Ddbus-spawn.c81 size_t to_read; in read_ints() local
83 to_read = sizeof (int) * n_ints_in_buf - bytes; in read_ints()
85 if (to_read == 0) in read_ints()
92 to_read); in read_ints()
136 size_t to_read; in read_pid() local
138 to_read = sizeof (pid_t) - bytes; in read_pid()
140 if (to_read == 0) in read_pid()
147 to_read); in read_pid()
/external/tinycompress/
Dcompress.c417 int to_read = 0; in compress_read() local
456 to_read = avail.avail; in compress_read()
458 to_read = size; in compress_read()
459 num_read = read(compress->fd, cbuf, to_read); in compress_read()
/external/e2fsprogs/intl/
Dloadmsgcat.c977 size_t to_read; in _nl_load_domain() local
984 to_read = size; in _nl_load_domain()
988 long int nb = (long int) read (fd, read_ptr, to_read); in _nl_load_domain()
999 to_read -= nb; in _nl_load_domain()
1001 while (to_read > 0); in _nl_load_domain()
/external/selinux/libsepol/src/
Dpolicydb.c2190 int rc, to_read = 2; in role_read() local
2197 to_read = 3; in role_read()
2199 rc = next_entry(buf, fp, sizeof(uint32_t) * to_read); in role_read()
2268 int rc, to_read; in type_read() local
2278 to_read = 5; in type_read()
2280 to_read = 4; in type_read()
2283 to_read = 3; in type_read()
2285 to_read = 5; in type_read()
2287 to_read = 4; in type_read()
2289 rc = next_entry(buf, fp, sizeof(uint32_t) * to_read); in type_read()
[all …]
/external/libevent/
Dbuffer.c2910 ev_ssize_t to_read = length > EV_SSIZE_MAX ? EV_SSIZE_MAX : (ev_ssize_t)length; in evbuffer_add_file() local
2911 read = evbuffer_readfile(tmp, fd, to_read); in evbuffer_add_file()