Home
last modified time | relevance | path

Searched refs:read_count (Results 1 – 25 of 32) sorted by relevance

12

/third_party/node/test/overlapped-checker/
Dmain_unix.c9 ssize_t read_count; in r() local
11 read_count = read(0, buf, buf_size); in r()
12 while (read_count < 0 && errno == EINTR); in r()
13 if (read_count <= 0) in r()
15 return (size_t)read_count; in r()
40 size_t read_count = r(buf, sizeof(buf)); in main() local
44 if (!strncmp(buf, "exit", read_count)) { in main()
47 w(buf, read_count); in main()
Dmain_win.c8 static DWORD read_count; variable
55 if (!GetOverlappedResult(stdin_h, &stdin_o, &read_count, FALSE)) { in main()
58 if (strncmp(buf, "exit", read_count) == 0) { in main()
61 write(buf, read_count); in main()
/third_party/musl/libc-test/src/regression/
Dscanf-bytes-consumed.c10 int read_count; in main() local
13 n = sscanf(buf, "%s%n", dest, &read_count); in main()
16 if(read_count != 2) in main()
17 t_error("sscanf consumed 2 bytes but reported %d\n", read_count); in main()
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/port/
Dmemory_input_stream.cc95 size_t read_count = std::min<size_t>(length_ - position_, length); in Read() local
96 if (b->size() < (size_t)(offset + read_count)) { in Read()
97 b->resize((size_t)(offset + read_count)); in Read()
99 memcpy(&((*b)[offset]), buffer_ + position_, read_count); in Read()
100 position_ += read_count; in Read()
101 return read_count; in Read()
Dfile_input_stream.cc101 size_t read_count = std::min<size_t>(length_ - position_, length); in Read() local
102 if (b->size() < (size_t)(offset + read_count)) { in Read()
103 b->resize((size_t)(offset + read_count)); in Read()
105 int32_t actual_read = fread(&((*b)[offset]), 1, read_count, file_); in Read()
/third_party/ltp/testcases/kernel/syscalls/truncate/
Dtruncate02.c37 off_t read_count; member
48 char read_buf[tc->read_count]; in verify_truncate()
51 memset(read_buf, 'b', tc->read_count); in verify_truncate()
80 SAFE_PREAD(1, fd, read_buf, tc->read_count, tc->read_off); in verify_truncate()
81 for (i = 0; i < tc->read_count; i++) { in verify_truncate()
/third_party/libuv/test/
Dtest-osx-select.c30 static int read_count; variable
41 fprintf(stdout, "got data %d\n", ++read_count); in read_cb()
44 if (read_count == 3) in read_cb()
80 ASSERT(read_count == 3); in TEST_IMPL()
134 ASSERT(read_count == 3); in TEST_IMPL()
/third_party/python/Lib/test/
Dtest_winconsoleio.py162 for read_count in range(1, 16):
168 b = stdin.read(read_count)
171 self.assertEqual(actual, expected, 'stdin.read({})'.format(read_count))
181 for read_count in range(1, 16):
187 b = stdin.read(read_count)
190 self.assertEqual(actual, expected, 'stdin.read({})'.format(read_count))
/third_party/skia/third_party/externals/freetype/builds/unix/
Dftsystem.c338 ssize_t read_count; in FT_Stream_Open() local
341 read_count = read( file, in FT_Stream_Open()
345 if ( read_count <= 0 ) in FT_Stream_Open()
347 if ( read_count == -1 && errno == EINTR ) in FT_Stream_Open()
355 total_read_count += read_count; in FT_Stream_Open()
/third_party/skia/third_party/externals/libpng/contrib/libtests/
Dpngimage.c377 size_t read_count; /* count of bytes read from current */ member
423 buffer->read_count = 0; in buffer_start_read()
813 size_t read_count = bp->read_count; in buffer_read() local
820 (last == bp->last && read_count >= bp->end_count)) in buffer_read()
828 else if (read_count >= sizeof last->buffer) in buffer_read()
832 read_count = 0; in buffer_read()
844 avail = (sizeof last->buffer) - read_count; in buffer_read()
848 memcpy(data, last->buffer + read_count, avail); in buffer_read()
849 read_count += avail; in buffer_read()
854 bp->read_count = read_count; in buffer_read()
/third_party/gstreamer/gstplugins_base/tests/check/libs/
Drtpdummyhdrextimpl.c54 guint read_count; member
198 dummy->read_count++; in gst_rtp_dummy_hdr_ext_read()
200 if (dummy->read_count % 5 == 1) { in gst_rtp_dummy_hdr_ext_read()
Drtphdrext.c57 fail_unless_equals_int (GST_RTP_DUMMY_HDR_EXT (dummy)->read_count, 1); in GST_START_TEST()
Drtpbasedepayload.c1596 fail_unless_equals_int (GST_RTP_DUMMY_HDR_EXT (ext)->read_count, 1); in GST_START_TEST()
1630 fail_unless_equals_int (GST_RTP_DUMMY_HDR_EXT (ext)->read_count, 1); in GST_START_TEST()
1684 fail_unless_equals_int (GST_RTP_DUMMY_HDR_EXT (ext)->read_count, 1); in GST_START_TEST()
1726 fail_unless_equals_int (GST_RTP_DUMMY_HDR_EXT (ext)->read_count, 1); in GST_START_TEST()
1764 fail_unless_equals_int (GST_RTP_DUMMY_HDR_EXT (ext1)->read_count, 1); in GST_START_TEST()
1765 fail_unless_equals_int (GST_RTP_DUMMY_HDR_EXT (ext2)->read_count, 1); in GST_START_TEST()
/third_party/skia/third_party/externals/freetype/builds/windows/
Dftsystem.c338 DWORD read_count; in FT_Stream_Open() local
344 &read_count, NULL ) == FALSE ) in FT_Stream_Open()
351 total_read_count += read_count; in FT_Stream_Open()
/third_party/libsnd/src/
Dsds.c54 int read_block, read_count ; member
427 psds->read_count = 0 ; in sds_2byte_read()
471 psds->read_count = 0 ; in sds_3byte_read()
515 psds->read_count = 0 ; in sds_4byte_read()
667 if (psds->read_count >= psds->samplesperblock) in sds_read()
670 count = (psds->samplesperblock - psds->read_count) ; in sds_read()
673 memcpy (&(ptr [total]), &(psds->read_samples [psds->read_count]), count * sizeof (int)) ; in sds_read()
675 psds->read_count += count ; in sds_read()
727 psds->read_count = newsample ; in sds_seek()
Dpaf.c63 int read_block, write_block, read_count, write_count ; member
437 ppaf24->read_count = newsample ; in paf24_seek()
488 ppaf24->read_count = 0 ; in paf24_read_block()
523 if (ppaf24->read_count >= PAF24_SAMPLES_PER_BLOCK) in paf24_read()
526 count = (PAF24_SAMPLES_PER_BLOCK - ppaf24->read_count) * ppaf24->channels ; in paf24_read()
529 …memcpy (&(ptr [total]), &(ppaf24->samples [ppaf24->read_count * ppaf24->channels]), count * sizeof… in paf24_read()
531 ppaf24->read_count += count / ppaf24->channels ; in paf24_read()
/third_party/libsnd/programs/
Dsndfile-play.c741 long k, start_count, output_count, write_count, read_count ; in solaris_play() local
780 { read_count = sf_read_short (sndfile, buffer, BUFFER_LEN) ; in solaris_play()
781 if (read_count < BUFFER_LEN) in solaris_play()
782 { memset (&(buffer [read_count]), 0, (BUFFER_LEN - read_count) * sizeof (short)) ; in solaris_play()
/third_party/pulseaudio/src/pulsecore/
Dsrbchannel.c168 pa_atomic_t read_count; member
253 sr->rb_read.count = &srh->read_count; in pa_srbchannel_new()
302 sr->rb_read.count = &srh->read_count; in pa_srbchannel_new_from_template()
/third_party/skia/third_party/externals/libpng/contrib/tools/
Dpngfix.c882 png_uint_32 read_count; /* Count of bytes read (in the chunk) */ member
1048 file->read_count = 0; in file_init()
1250 ++(file->read_count); in read_byte()
1645 chunk->file->read_count = 8; in setpos()
2982 file->read_count = 8; in sync_stream()
3038 file->read_count -= 8; in sync_stream()
3140 file->read_count -= 8; in read_chunk()
3203 if (file->read_count < 8) in read_callback()
3205 assert(file->read_count == 0); in read_callback()
3210 if (file->read_count == 4) in read_callback()
[all …]
/third_party/cef/libcef/browser/extensions/value_store/
Dcef_value_store.h38 int read_count() { return read_count_; } in read_count() function
/third_party/skia/third_party/externals/freetype/src/pshinter/
Dpshglob.c141 FT_UInt read_count, in psh_blues_set_zones_0() argument
153 for ( ; read_count > 1; read_count -= 2 ) in psh_blues_set_zones_0()
/third_party/f2fs-tools/fsck/
Dsegment.c167 u64 read_count; in f2fs_read() local
193 read_count = remained_blkentries = 0; in f2fs_read()
229 read_count += len_in_blk; in f2fs_read()
238 return read_count; in f2fs_read()
/third_party/pulseaudio/src/modules/alsa/
Dalsa-source.c157 uint64_t read_count; member
479 u->read_count = 0; in reset_vars()
729 u->read_count += frames * u->frame_size; in mmap_read()
872 u->read_count += frames * u->frame_size; in unix_read()
931 position = u->read_count + ((uint64_t) delay * (uint64_t) u->frame_size); in update_smoother()
963 delay = - pa_smoother_2_get_delay(u->smoother, now1, u->read_count); in source_get_latency()
967 delay = (int64_t) now2 - (int64_t) pa_bytes_to_usec(u->read_count, &u->source->sample_spec); in source_get_latency()
/third_party/libsnd/tests/
Dutils.tpl287 int k, read_count ;
299 while ((read_count = fread (buf, 1, sizeof (buf), file)))
300 for (k = 0 ; k < read_count ; k++)
/third_party/ntfs-3g/ntfsprogs/
Dntfsundelete.c2271 long long read_count = min((bmpsize - i), BUFSIZE); in scan_disk() local
2272 size = ntfs_attr_pread(attr, i, read_count, buffer); in scan_disk()

12