Home
last modified time | relevance | path

Searched refs:n_read (Results 1 – 4 of 4) sorted by relevance

/external/valgrind/tsan/
Dcommon_util.cc119 int n_read; in ReadFileToString() local
121 while ((n_read = read(fd, buff, sizeof(buff) - 1)) > 0) { in ReadFileToString()
122 buff[n_read] = 0; in ReadFileToString()
123 res.append(buff, n_read); in ReadFileToString()
Dts_util.cc224 int n_read = read(fd, buff, sizeof(buff) - 1); in GetVmSizeInMb() local
225 buff[n_read] = 0; in GetVmSizeInMb()
566 WINDOWS::DWORD n_read = 0; in Read() local
567 int res = WINDOWS::ReadFile(pipe_fd[0], buf, 1, &n_read, NULL); in Read()
568 if (res == 0 && n_read == 0) in Read()
/external/bluetooth/glib/gio/
Dgoutputstream.c403 gssize n_read, n_written; in g_output_stream_real_splice() local
420 n_read = g_input_stream_read (source, buffer, sizeof (buffer), cancellable, error); in g_output_stream_real_splice()
421 if (n_read == -1) in g_output_stream_real_splice()
427 if (n_read == 0) in g_output_stream_real_splice()
431 while (n_read > 0) in g_output_stream_real_splice()
433 n_written = class->write_fn (stream, p, n_read, cancellable, error); in g_output_stream_real_splice()
441 n_read -= n_written; in g_output_stream_real_splice()
Dgfile.c2205 gssize n_read, n_written; in copy_stream_with_progress() local
2244 n_read = g_input_stream_read (in, buffer, sizeof (buffer), cancellable, error); in copy_stream_with_progress()
2245 if (n_read == -1) in copy_stream_with_progress()
2251 if (n_read == 0) in copy_stream_with_progress()
2254 current_size += n_read; in copy_stream_with_progress()
2257 while (n_read > 0) in copy_stream_with_progress()
2259 n_written = g_output_stream_write (out, p, n_read, cancellable, error); in copy_stream_with_progress()
2267 n_read -= n_written; in copy_stream_with_progress()