int code;
int length;
- bzero(vnode, SIZEOF_LARGEDISKVNODE);
+ memset(vnode, 0, SIZEOF_LARGEDISKVNODE);
V_pref(vp, nearInode);
inodeNumber = IH_CREATE(V_linkHandle(vp), V_device(vp),
int i, nconns, is_incremental;
if (results)
- bzero(results, sizeof(manyResults));
+ memset(results, 0, sizeof(manyResults));
if (!afsconf_SuperUser(tdir, acid, caller))
return VOLSERBAD_ACCESS;/*not a super user*/
partList.partId[j++] = i;
}
pEntries->partEntries_val = (afs_int32 *) malloc(j * sizeof(int));
- bcopy((char *)&partList, (char *)pEntries->partEntries_val, j * sizeof(int));
+ memcpy((char *)pEntries->partEntries_val, (char *)&partList, j * sizeof(int));
pEntries->partEntries_len = j;
#else
code = stat("/",&rbuf); /*interested in buf->st_dev*/
}
}
pEntries->partEntries_val = (afs_int32 *) malloc(j * sizeof(int));
- bcopy((char *)&partList, (char *)pEntries->partEntries_val, j * sizeof(int));
+ memcpy((char *)pEntries->partEntries_val, (char *)&partList, j * sizeof(int));
pEntries->partEntries_len = j;
#endif
return 0;
/*
* Copy out the stat fields in a single operation.
*/
- bcopy((char *)&(volDiskDataP->stat_reads[0]),
- (char *)&(xInfoP->stat_reads[0]),
- numStatBytes);
+ memcpy((char *)&(xInfoP->stat_reads[0]), (char *)&(volDiskDataP->stat_reads[0]), numStatBytes);
/*
* We're done copying. Detach the volume and iterate (at this
/*
* Copy out the stat fields in a single operation.
*/
- bcopy((char *)&(volDiskDataP->stat_reads[0]),
- (char *)&(xInfoP->stat_reads[0]),
- numStatBytes);
+ memcpy((char *)&(xInfoP->stat_reads[0]), (char *)&(volDiskDataP->stat_reads[0]), numStatBytes);
/*
* We're done copying. Detach the volume and iterate.