/freebsd-11-stable/bin/mv/ |
H A D | mv.c | 280 int nread, from_fd, to_fd; local 300 while ((nread = read(from_fd, bp, (size_t)blen)) > 0) 301 if (write(to_fd, bp, (size_t)nread) != nread) { 305 if (nread < 0) {
|
/freebsd-11-stable/contrib/binutils/bfd/ |
H A D | bfdio.c | 115 size_t nread; local 147 nread = abfd->iovec->bread (abfd, ptr, size); 149 nread = 0; 150 if (nread != (size_t) -1) 151 abfd->where += nread; 153 return nread;
|
H A D | cache.c | 271 file_ptr nread; local 291 nread = read (fileno (f), buf, nbytes); 295 if (nread == (file_ptr)-1) 301 nread = fread (buf, 1, nbytes, f); 305 if (nread < nbytes && ferror (f)) 311 return nread;
|
H A D | opncls.c | 461 file_ptr nread = (vec->pread) (abfd, vec->stream, buf, nbytes, vec->where); local 462 if (nread < 0) 463 return nread; 464 vec->where += nread; 465 return nread;
|
/freebsd-11-stable/contrib/binutils/binutils/ |
H A D | ar.c | 802 size_t nread; 807 nread = bfd_bread (cbuf, (bfd_size_type) tocopy, abfd); 808 if (nread != tocopy) 816 if ((size_t) fwrite (cbuf, 1, nread, stdout) != nread) 838 size_t nread, tocopy; 875 nread = bfd_bread (cbuf, (bfd_size_type) tocopy, abfd); 876 if (nread != tocopy) 900 if ((size_t) fwrite (cbuf, 1, nread, ostream) != nread) 799 size_t nread; local 835 size_t nread, tocopy; local [all...] |
H A D | rename.c | 53 int fromfd, tofd, nread; local 72 while ((nread = read (fromfd, buf, sizeof buf)) > 0) 74 if (write (tofd, buf, nread) != nread) 86 if (nread < 0)
|
/freebsd-11-stable/contrib/diff/lib/ |
H A D | cmpbuf.c | 93 ssize_t nread = read (fd, bp, bytes_to_read); local 94 if (nread <= 0) 96 if (nread == 0) 117 bp += nread;
|
/freebsd-11-stable/contrib/gdb/gdb/ |
H A D | procfs.c | 951 int nread; local 961 nread = read (sysent_fd, namebuf, sizeof namebuf); 962 if (nread <= 0) 973 namebuf[nread-1] = '\0';
|
H A D | valprint.c | 1044 int nread; /* Number of bytes actually read. */ 1052 nread = len; 1057 for (errcode = 0, nread = 0; len > 0 && errcode == 0; nread++, len--) 1064 nread--; 1071 return (nread); 1043 int nread; /* Number of bytes actually read. */ local
|
H A D | wince-stub.c | 296 DWORD nread; local 305 s, nbytes, &nread))
|
/freebsd-11-stable/contrib/groff/src/libs/libbib/ |
H A D | index.cpp | 178 int nread = read(fd, ptr, bytes_to_read); local 179 if (nread == 0) { 183 if (nread < 0) { 187 bytes_to_read -= nread; 188 ptr += nread;
|
H A D | linear.cpp | 319 int nread = read(fd, buffer + 4, size); local 320 if (nread < 0) 322 else if (nread != size) 326 nread = read(fd, &c, 1); 327 if (nread != 0)
|
/freebsd-11-stable/contrib/groff/src/utils/hpftodit/ |
H A D | hpftodit.cpp | 415 long nread = read(fd, buf_, sb.st_size); local 416 if (nread < 0) 418 if (nread != sb.st_size)
|
/freebsd-11-stable/contrib/jemalloc/src/ |
H A D | ctl.c | 1852 unsigned nread, i; local 1858 nread = (*oldlenp < ctl_stats.narenas * sizeof(bool)) 1862 nread = ctl_stats.narenas; 1865 for (i = 0; i < nread; i++)
|
H A D | pages.c | 215 ssize_t nread; local 221 nread = read(fd, &buf, sizeof(buf)); 222 if (nread < 1)
|
H A D | prof.c | 1449 ssize_t nread; local 1456 nread = 0; 1458 prof_dump_buf_end += nread; 1467 nread = read(mfd, &prof_dump_buf[prof_dump_buf_end], 1469 } while (nread > 0);
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_mmap.c | 108 ssize_t nread; local 141 nread = read(fds[1], buf + page, BUFSIZE - page); 143 if (nread == -1) 146 if (nread != nwritten) 149 if (docheck != 0 && memcmp(backup, buf + page, nread) != 0)
|
/freebsd-11-stable/contrib/ntp/sntp/libevent/ |
H A D | buffer.c | 1186 size_t nread; local 1217 nread = datlen; 1240 result = nread; 1257 size_t nread = 0; local 1288 nread += chain->off; 1296 if (nread) { 1311 dst->total_len += nread; 1312 dst->n_add_for_cb += nread; 1320 nread += datlen; 1325 src->total_len -= nread; [all...] |
H A D | evmap.c | 60 ev_uint16_t nread; member in struct:evmap_io 257 entry->nread = 0; 271 int nread, nwrite, nclose, retval = 0; local 289 nread = ctx->nread; 293 if (nread) 301 if (++nread == 1) 312 if (EVUTIL_UNLIKELY(nread > 0xffff || nwrite > 0xffff || nclose > 0xffff)) { 336 ctx->nread = (ev_uint16_t) nread; 352 int nread, nwrite, nclose, retval = 0; local [all...] |
/freebsd-11-stable/contrib/ntp/sntp/libevent/test/ |
H A D | regress.c | 241 int nread; member in struct:both 257 both->nread += len; 270 if (len > both->nread) 271 len = both->nread; 283 both->nread -= len; 544 w1.nread = 4096; 545 w2.nread = 8192; 557 if (r1.nread == 8192 && r2.nread == 4096)
|
H A D | regress_bufferevent.c | 345 static int nread; local 354 nread += len; 355 if (nread == 65000) {
|
H A D | regress_zlib.c | 136 int nread, nwrite; local 160 nread = v_in[0].iov_len - p->avail_in; 163 evbuffer_drain(src, nread); 190 int nread, nwrite; local 214 nread = v_in[0].iov_len - p->avail_in; 217 evbuffer_drain(src, nread);
|
/freebsd-11-stable/contrib/nvi/ex/ |
H A D | ex_filter.c | 46 recno_t nread; local 177 if (ex_readfp(sp, "filter", ofp, fm, &nread, 1)) 179 sp->rptlines[L_ADDED] += nread; 182 rp->lno = nread; 184 rp->lno += nread; 252 if (ex_readfp(sp, "filter", ofp, tm, &nread, 1)) 254 sp->rptlines[L_ADDED] += nread;
|
/freebsd-11-stable/contrib/pf/libevent/ |
H A D | buffer.c | 188 size_t nread = datlen; local 189 if (nread >= buf->off) 190 nread = buf->off; 192 memcpy(data, buf->buffer, nread); 193 evbuffer_drain(buf, nread); 195 return (nread);
|
/freebsd-11-stable/contrib/tzcode/stdtime/ |
H A D | localtime.c | 380 int nread; local 456 nread = _read(fid, u->buf, sizeof u->buf); 457 if (_close(fid) < 0 || nread <= 0) 477 if (nread - (p - u->buf) < 581 nread -= p - u->buf; 582 for (i = 0; i < nread; ++i) 590 if (doextend && nread > 2 && 591 u->buf[0] == '\n' && u->buf[nread - 1] == '\n' && 599 u->buf[nread - 1] = '\0';
|