return(read(fd, buf, len));
if (nstored >= len) {
- bcopy(store_ptr, buf, len);
+ memcpy(buf, store_ptr, len);
store_ptr += len;
nstored -= len;
return(len);
} else if (nstored) {
- bcopy(store_ptr, buf, nstored);
+ memcpy(buf, store_ptr, nstored);
nreturned += nstored;
buf += nstored;
len -= nstored;
store_ptr = storage;
nstored = net_len;
if (nstored > len) {
- bcopy(store_ptr, buf, len);
+ memcpy(buf, store_ptr, len);
nreturned += len;
store_ptr += len;
nstored -= len;
} else {
- bcopy(store_ptr, buf, nstored);
+ memcpy(buf, store_ptr, nstored);
nreturned += nstored;
nstored = 0;
}
}
garbage = random();
/* insert random garbage */
- (void) bcopy(&garbage, garbage_buf, min(sizeof(long),8));
+ (void) memcpy(garbage_buf, &garbage, min(sizeof(long),8));
/* this "right-justifies" the data in the buffer */
- (void) bcopy(buf, garbage_buf + 8 - len, len);
+ (void) memcpy(garbage_buf + 8 - len, buf, len);
}
(void) mit_des_cbc_encrypt((len < 8) ? garbage_buf : buf,
return(read(fd, buf, len));
if (nstored >= len) {
- bcopy(store_ptr, buf, len);
+ memcpy(buf, store_ptr, len);
store_ptr += len;
nstored -= len;
return(len);
} else if (nstored) {
- bcopy(store_ptr, buf, nstored);
+ memcpy(buf, store_ptr, nstored);
nreturned += nstored;
buf += nstored;
len -= nstored;
store_ptr = storage;
nstored = net_len;
if (nstored > len) {
- bcopy(store_ptr, buf, len);
+ memcpy(buf, store_ptr, len);
nreturned += len;
store_ptr += len;
nstored -= len;
} else {
- bcopy(store_ptr, buf, nstored);
+ memcpy(buf, store_ptr, nstored);
nreturned += nstored;
nstored = 0;
}
}
garbage = random();
/* insert random garbage */
- (void) bcopy(&garbage, garbage_buf, min(sizeof(long),8));
+ (void) memcpy(garbage_buf, &garbage, min(sizeof(long),8));
/* this "right-justifies" the data in the buffer */
- (void) bcopy(buf, garbage_buf + 8 - len, len);
+ (void) memcpy(garbage_buf + 8 - len, buf, len);
}
(void) pcbc_encrypt((len < 8) ? garbage_buf : buf,
des_outbuf,
(void) memset((char *) &sin, 0, (int) sizeof(sin));
if (hp)
- (void) bcopy (hp->h_addr, (char *)&sin.sin_addr,
- sizeof(sin.sin_addr));
+ (void) memcpy ((char *)&sin.sin_addr, hp->h_addr,
+ sizeof(sin.sin_addr));
else
sin.sin_addr.s_addr = inet_addr(host);
(cnt + 2)));
if (!P)
return(-1);
- bcopy(environ, P, cnt * sizeof(char *));
+ memcpy(P, environ, cnt * sizeof(char *));
environ = P;
}
environ[cnt + 1] = NULL;