Searched refs:copylen (Results 1 - 17 of 17) sorted by relevance

/freebsd-10-stable/lib/libpmc/
H A Dpmclog.c127 int avail, copylen, recordsize, used; local
159 copylen = avail < HEADERSIZE ? avail : HEADERSIZE;
160 bcopy(src, dst, copylen);
161 ps->ps_svcount = used = copylen;
163 if (copylen < HEADERSIZE) {
168 src += copylen;
169 dst += copylen;
178 bcopy(src, dst, recordsize - copylen);
184 bcopy(src, dst, avail - copylen);
213 used = copylen
[all...]
/freebsd-10-stable/contrib/netbsd-tests/fs/puffs/h_dtfs/
H A Ddtfs_vnops.c460 size_t copylen; local
472 copylen = MIN(xfer, BLOCKLEFT(offset, DTFS_BLOCKSIZE));
475 memcpy(dest, src, copylen);
476 offset += copylen;
477 dest += copylen;
478 xfer -= copylen;
497 size_t copylen; local
511 copylen = MIN(*resid, BLOCKLEFT(offset, DTFS_BLOCKSIZE));
515 memcpy(dest, src, copylen);
516 offset += copylen;
[all...]
/freebsd-10-stable/crypto/openssl/crypto/asn1/
H A Dbio_asn1.c100 int copylen; member in struct:BIO_ASN1_BUF_CTX_t
170 ctx->copylen = 0;
235 ctx->copylen = inl;
257 if (inl > ctx->copylen)
258 wrmax = ctx->copylen;
265 ctx->copylen -= ret;
269 if (ctx->copylen == 0)
/freebsd-10-stable/usr.bin/mail/
H A Dfio.c422 int copylen; local
427 copylen = strlcpy(name, folder, namelen);
429 copylen = snprintf(name, namelen, "%s/%s",
431 return (copylen < 0 || copylen >= namelen ? (-1) : (0));
/freebsd-10-stable/contrib/ntp/lib/isc/
H A Dhash.c261 unsigned int i, copylen; local
265 for (i = 0; i < hctx->vectorlen; i += copylen, p += copylen) {
268 copylen = sizeof(pr);
270 copylen = hctx->vectorlen - i;
272 memcpy(p, &pr, copylen);
/freebsd-10-stable/contrib/gcc/
H A Dc-lex.c643 size_t copylen;
672 copylen = token->val.str.len;
674 copylen -= 2;
679 copylen--;
682 copylen--;
685 copy = (char *) alloca (copylen + 1);
686 memcpy (copy, token->val.str.text, copylen);
687 copy[copylen] = '\0';
641 size_t copylen; local
/freebsd-10-stable/usr.sbin/portsnap/phttpget/
H A Dphttpget.c253 copybytes(int sd, int fd, off_t copylen, char * resbuf, int * resbuflen, argument
258 while (copylen) {
261 if (copylen < len)
262 len = copylen;
269 copylen -= len;
/freebsd-10-stable/sys/cam/ctl/
H A Dctl_ha.c764 size_t copylen, off; local
790 copylen = min(M_TRAILINGSPACE(mb), len - off);
791 memcpy(mtodo(mb, mb->m_len), (const char *)addr + off, copylen); local
792 mb->m_len += copylen;
793 off += copylen;
801 copylen = min(M_TRAILINGSPACE(mb), len2 - off);
802 memcpy(mtodo(mb, mb->m_len), (const char *)addr2 + off, copylen); local
803 mb->m_len += copylen;
804 off += copylen;
/freebsd-10-stable/sys/dev/iir/
H A Diir.c1088 size_t copylen = MIN(sizeof(inq), ccb->csio.dxfer_len); local
1102 bcopy(&inq, ccb->csio.data_ptr, copylen );
1103 if( ccb->csio.dxfer_len > copylen )
1104 bzero( ccb->csio.data_ptr+copylen,
1105 ccb->csio.dxfer_len - copylen );
1115 size_t copylen = MIN(sizeof(mpd), ccb->csio.dxfer_len); local
1128 bcopy(&mpd, ccb->csio.data_ptr, copylen );
1129 if( ccb->csio.dxfer_len > copylen )
1130 bzero( ccb->csio.data_ptr+copylen,
1131 ccb->csio.dxfer_len - copylen );
1143 size_t copylen = MIN(sizeof(rcd), ccb->csio.dxfer_len); local
[all...]
/freebsd-10-stable/sys/dev/iscsi/
H A Dicl.c1053 size_t copylen, off = 0; local
1064 copylen = min(M_TRAILINGSPACE(mb), len - off);
1065 memcpy(mtod(mb, char *), (const char *)addr + off, copylen); local
1066 mb->m_len = copylen;
1067 off += copylen;
/freebsd-10-stable/contrib/unbound/sldns/
H A Dstr2wire.c477 size_t copylen; local
479 copylen = origin_len;
482 copylen = dname_len;
485 copylen = 1;
488 if((*rr_cur_len) + copylen > rr_len)
492 memmove(rr+*rr_cur_len, tocopy, copylen);
493 (*rr_cur_len) += copylen;
/freebsd-10-stable/sys/fs/nfsserver/
H A Dnfs_nfsdsubs.c1435 int error = 0, len, copylen; local
1462 copylen = len;
1470 copylen = NFSRV_MAXFH;
1479 NFSBCOPY(tl, (caddr_t)fhp->nfsrvfh_data, copylen); local
1480 fhp->nfsrvfh_len = copylen;
/freebsd-10-stable/sys/compat/freebsd32/
H A Dfreebsd32_misc.c1014 int len, maxlen, copylen; local
1046 copylen = sizeof(struct cmsghdr);
1047 if (len < copylen) {
1049 copylen = len;
1052 error = copyout(cm,ctlbuf,copylen);
1056 ctlbuf += FREEBSD32_ALIGN(copylen);
1057 len -= FREEBSD32_ALIGN(copylen);
1063 copylen = datalen;
1064 if (len < copylen) {
1066 copylen
[all...]
/freebsd-10-stable/contrib/subversion/subversion/libsvn_ra_svn/
H A Dmarshal.c322 apr_ssize_t buflen, copylen;
325 copylen = (buflen < end - data) ? buflen : end - data;
326 memcpy(data, conn->read_ptr, copylen);
327 conn->read_ptr += copylen;
328 return data + copylen;
363 apr_size_t copylen = (buflen < len) ? buflen : (apr_size_t)len;
364 conn->read_ptr += copylen;
365 len -= copylen;
321 apr_ssize_t buflen, copylen; local
362 apr_size_t copylen = (buflen < len) ? buflen : (apr_size_t)len; local
/freebsd-10-stable/contrib/ntp/lib/isc/win32/
H A Dsocket.c1216 int copylen; local
1252 copylen = min(r.length, sock->recvbuf.remaining);
1253 memcpy(r.base, sock->recvbuf.consume_position, copylen);
1254 sock->recvbuf.consume_position += copylen;
1255 sock->recvbuf.remaining -= copylen;
1256 isc_buffer_add(buffer, copylen);
1257 dev->n += copylen;
1262 copylen = min(dev->region.length - dev->n, sock->recvbuf.remaining);
1263 memcpy(dev->region.base + dev->n, sock->recvbuf.consume_position, copylen);
1264 sock->recvbuf.consume_position += copylen;
[all...]
/freebsd-10-stable/contrib/jemalloc/src/
H A Dctl.c961 size_t copylen = (sizeof(t) <= *oldlenp) \
963 memcpy(oldp, (void *)&(v), copylen); \
/freebsd-10-stable/contrib/ntp/sntp/libevent/
H A Dbuffer.c1220 size_t copylen = chain->off - pos_in_chain; local
1223 copylen);
1224 data += copylen;
1225 datlen -= copylen;

Completed in 155 milliseconds