Searched refs:bytes_read (Results 1 - 25 of 92) sorted by relevance

1234

/macosx-10.10/autofs-246/smbremountserver/
H A Dsmbremountserver.c50 ssize_t bytes_read; local
59 bytes_read = read(0, &byte_count, sizeof byte_count);
60 if (bytes_read == -1) {
65 if (bytes_read < 0 || (size_t)bytes_read != sizeof byte_count) {
67 bytes_read);
83 bytes_read = read(0, blob, byte_count);
84 if (bytes_read == -1) {
89 if (bytes_read < 0 || bytes_read !
[all...]
/macosx-10.10/libarchive-30/libarchive/contrib/
H A Duntar.c134 size_t bytes_read; local
139 bytes_read = fread(buff, 1, 512, a);
140 if (bytes_read < 512) {
143 path, bytes_read);
182 bytes_read = fread(buff, 1, 512, a);
183 if (bytes_read < 512) {
186 path, bytes_read);
190 bytes_read = filesize;
192 if (fwrite(buff, 1, bytes_read, f)
193 != bytes_read)
[all...]
/macosx-10.10/Security-57031.1.35/SecurityTool/
H A Dreadline.c91 ssize_t bytes_read; local
115 bytes_read = pread(fd, buffer, length, 0);
116 } while (bytes_read == -1 && errno == EINTR);
118 if (bytes_read == -1)
124 if (bytes_read != (ssize_t)length)
126 sec_error("read %s: only read %d of %qu bytes", name, bytes_read, length);
/macosx-10.10/security_systemkeychain-55202/src/
H A Dreadline.c91 ssize_t bytes_read; local
115 bytes_read = pread(fd, buffer, length, 0);
116 } while (bytes_read == -1 && errno == EINTR);
118 if (bytes_read == -1)
124 if (bytes_read != (ssize_t)length)
126 sec_error("read %s: only read %d of %qu bytes", name, bytes_read, length);
/macosx-10.10/Security-57031.1.35/SecurityTests/regressions/test/
H A Dtestleaks.c103 ssize_t bytes_read;
104 bytes_read = read(cld_stdout[0], p, 4096);
105 if (bytes_read <= 0)
110 for (ix = 0; ix < bytes_read; ++ix)
133 if (p[ix] == '\n' || ix + 1 >= bytes_read)
/macosx-10.10/apr-32/apr/apr/test/
H A Dsendfile.c180 apr_size_t bytes_read; local
460 bytes_read = 1;
461 rv = apr_socket_recv(sock, buf, &bytes_read);
468 if (bytes_read != 0) {
471 (long int)bytes_read);
496 apr_size_t bytes_read; local
548 bytes_read = strlen(HDR1);
549 rv = apr_socket_recv(newsock, buf, &bytes_read);
556 if (bytes_read != strlen(HDR1)) {
563 (int)bytes_read, bu
[all...]
/macosx-10.10/Security-57031.1.35/Security/utilities/SecurityTool/
H A Dreadline.c132 ssize_t bytes_read; local
144 bytes_read = pread(fd, buffer, length, 0);
145 } while (bytes_read == -1 && errno == EINTR);
147 if (bytes_read == -1)
153 if (bytes_read != (ssize_t)length)
155 fprintf(stderr, "read %s: only read %zu of %zu bytes", name, bytes_read, length);
206 ssize_t bytes_read; local
208 bytes_read = pread(fd, buf, (size_t)(fsize - total_read), total_read);
209 if (bytes_read == -1) {
213 if (bytes_read
[all...]
/macosx-10.10/libarchive-30/libarchive/libarchive/
H A Darchive_read_support_format_ar.c166 ssize_t bytes_read; local
186 if ((b = __archive_read_ahead(a, 60, &bytes_read)) == NULL)
439 ssize_t bytes_read; local
445 *buff = __archive_read_ahead(a, 1, &bytes_read);
446 if (bytes_read == 0) {
451 if (bytes_read < 0)
453 if (bytes_read > ar->entry_bytes_remaining)
454 bytes_read = (ssize_t)ar->entry_bytes_remaining;
455 *size = bytes_read;
457 ar->entry_offset += bytes_read;
[all...]
H A Darchive_read_open_fd.c116 ssize_t bytes_read; local
119 bytes_read = read(mine->fd, mine->buffer, mine->block_size);
120 if (bytes_read < 0) {
123 return (bytes_read);
H A Darchive_read_open_file.c112 ssize_t bytes_read; local
115 bytes_read = fread(mine->buffer, 1, mine->block_size, mine->f);
116 if (bytes_read < 0) {
119 return (bytes_read);
H A Darchive_write_set_compression_program.c267 ssize_t bytes_read, bytes_written; local
288 bytes_read = read(state->child_stdout,
291 } while (bytes_read == -1 && errno == EINTR);
293 if (bytes_read == 0 || (bytes_read == -1 && errno == EPIPE))
296 if (bytes_read == -1) {
302 state->child_buf_avail += bytes_read;
H A Darchive_read_support_format_tar.c446 ssize_t bytes_read; local
456 bytes_read = gnu_sparse_10_read(a, tar);
457 tar->entry_bytes_remaining -= bytes_read;
458 if (bytes_read < 0)
459 return (bytes_read);
489 *buff = __archive_read_ahead(a, 1, &bytes_read);
490 if (bytes_read < 0)
497 if (bytes_read > tar->entry_bytes_remaining)
498 bytes_read = tar->entry_bytes_remaining;
501 if (tar->sparse_list->remaining < bytes_read)
1788 ssize_t bytes_read; local
1925 ssize_t bytes_read; local
1968 ssize_t remaining, bytes_read; local
2146 ssize_t bytes_read; local
[all...]
H A Darchive_read_open_filename.c160 ssize_t bytes_read; local
163 bytes_read = read(mine->fd, mine->buffer, mine->block_size);
164 if (bytes_read < 0) {
171 return (bytes_read);
H A Darchive_read_support_format_cpio.c282 ssize_t bytes_read; local
287 *buff = __archive_read_ahead(a, 1, &bytes_read);
288 if (bytes_read <= 0)
290 if (bytes_read > cpio->entry_bytes_remaining)
291 bytes_read = cpio->entry_bytes_remaining;
292 *size = bytes_read;
294 cpio->entry_offset += bytes_read;
295 cpio->entry_bytes_remaining -= bytes_read;
296 __archive_read_consume(a, bytes_read);
300 *buff = __archive_read_ahead(a, 1, &bytes_read);
[all...]
H A Darchive_read.c576 size_t bytes_read; local
580 bytes_read = 0;
590 return (bytes_read);
622 bytes_read += len;
636 bytes_read += len;
639 return (bytes_read);
959 ssize_t bytes_read; local
1018 bytes_read = (filter->read)(filter,
1020 if (bytes_read < 0) { /* Read error. */
1028 if (bytes_read
1236 ssize_t bytes_read; local
[all...]
/macosx-10.10/apr-32/apr/apr/file_io/unix/
H A Dfullrw.c22 apr_size_t *bytes_read)
36 if (bytes_read != NULL)
37 *bytes_read = total_read;
/macosx-10.10/ruby-106/ruby/lib/rubygems/package/
H A Dtar_reader.rb67 pending = size - entry.bytes_read
75 bytes_read = @io.read([pending, 4096].min).size
77 pending -= bytes_read
/macosx-10.10/cxxfilt-11/cxxfilt/opcodes/
H A Dv850-dis.c55 int bytes_read; local
62 bytes_read = short_op ? 2 : 4;
305 status = info->read_memory_func (memaddr + bytes_read,
309 bytes_read += 2;
320 info->memory_error_func (status, memaddr + bytes_read,
325 status = info->read_memory_func (memaddr + bytes_read,
329 bytes_read += 4;
334 info->memory_error_func (status, memaddr + bytes_read,
363 return bytes_read;
/macosx-10.10/cxxfilt-11/cxxfilt/binutils/
H A Ddwarf.c227 unsigned int bytes_read; local
232 len = read_leb128 (data, & bytes_read, 0);
233 data += bytes_read;
238 return bytes_read;
241 len += bytes_read;
254 adr = byte_get (data, len - bytes_read - 1);
266 printf (_("%lu\t"), read_leb128 (data, & bytes_read, 0));
267 data += bytes_read;
268 printf (_("%lu\t"), read_leb128 (data, & bytes_read, 0));
269 data += bytes_read;
413 unsigned int bytes_read; local
588 unsigned int bytes_read; local
935 unsigned int bytes_read; local
1683 unsigned int bytes_read; local
1931 unsigned int bytes_read; local
1959 unsigned int bytes_read; local
2169 unsigned int bytes_read; local
[all...]
/macosx-10.10/ruby-106/ruby/lib/rubygems/package/tar_reader/
H A Dentry.rb35 def bytes_read method in class:Gem
111 bytes_read
/macosx-10.10/cxxfilt-11/cxxfilt/bfd/
H A Ddwarf2.c427 unsigned int abbrev_number, bytes_read, abbrev_name; local
463 abbrev_number = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read);
464 abbrev_ptr += bytes_read;
475 read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read);
476 abbrev_ptr += bytes_read;
481 abbrev_name = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read);
482 abbrev_ptr += bytes_read;
483 abbrev_form = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read);
484 abbrev_ptr += bytes_read;
518 abbrev_name = read_unsigned_leb128 (abfd, abbrev_ptr, &bytes_read);
556 unsigned int bytes_read; local
971 unsigned int i, bytes_read, offset_size; local
1563 unsigned int abbrev_number, bytes_read, i; local
1673 unsigned int abbrev_number, bytes_read, i; local
1902 unsigned int abbrev_number, bytes_read, i; local
[all...]
/macosx-10.10/ruby-106/ruby/test/rubygems/
H A Dtest_gem_package_tar_reader_entry.rb20 assert_equal 0, @entry.bytes_read
24 assert_equal 1, @entry.bytes_read
30 assert @entry.bytes_read
/macosx-10.10/curl-83.1.2/curl/lib/
H A Dsecurity.c238 size_t bytes_read; local
253 bytes_read = buffer_read(&conn->in_buffer, buffer, len);
254 len -= bytes_read;
255 total_read += bytes_read;
256 buffer += bytes_read;
262 if(bytes_read > 0)
264 return bytes_read;
266 bytes_read = buffer_read(&conn->in_buffer, buffer, len);
267 len -= bytes_read;
268 total_read += bytes_read;
[all...]
/macosx-10.10/libarchive-30/libarchive/contrib/shar/
H A Dshar.c94 ssize_t bytes_read, bytes_written; local
99 bytes_read = read(fd, buffer, sizeof(buffer));
100 while (bytes_read != 0) {
101 if (bytes_read < 0) {
105 bytes_written = archive_write_data(a, buffer, bytes_read);
108 bytes_read = read(fd, buffer, sizeof(buffer));
/macosx-10.10/OpenSSL098-52/src/apps/
H A Ds_time.c182 static long bytes_read=0; variable
205 bytes_read=0;
499 bytes_read=0;
522 bytes_read+=i;
556 printf( "\n\n%d connections in %.2fs; %.2f connections/user sec, bytes read %ld\n", nConn, totalTime, ((double)nConn/totalTime),bytes_read);
557 printf( "%d connections in %ld real seconds, %ld bytes read per connection\n",nConn,(long)time(NULL)-finishtime+maxTime,bytes_read/nConn);
592 bytes_read=0;
615 bytes_read+=i;
646 printf( "\n\n%d connections in %.2fs; %.2f connections/user sec, bytes read %ld\n", nConn, totalTime, ((double)nConn/totalTime),bytes_read);
647 printf( "%d connections in %ld real seconds, %ld bytes read per connection\n",nConn,(long)time(NULL)-finishtime+maxTime,bytes_read/nCon
[all...]

Completed in 386 milliseconds

1234