struct obj_get_info_saved *saved;
if (entering(tcp)) {
- saved = xcalloc(1, sizeof(*saved));
+ saved = xzalloc(sizeof(*saved));
saved->info_len = attr.info_len;
set_tcb_priv_data(tcp, saved, free);
static struct vcpu_info *
vcpu_alloc(struct tcb *const tcp, int fd, int cpuid)
{
- struct vcpu_info *vcpu_info = xcalloc(1, sizeof(*vcpu_info));
+ struct vcpu_info *vcpu_info = xzalloc(sizeof(*vcpu_info));
vcpu_info->fd = fd;
vcpu_info->cpuid = cpuid;
/* Size should be multiple of 8, but kernel doesn't check for it */
/* size &= ~7; */
- attr = xcalloc(1, sizeof(*attr));
+ attr = xzalloc(sizeof(*attr));
if (umoven_or_printaddr(tcp, addr, size, attr)) {
free(attr);
tcp->s_ent = &sysent[tcp->scno];
tcp->qual_flg = qual_flags(tcp->scno);
} else {
- struct sysent_buf *s = xcalloc(1, sizeof(*s));
+ struct sysent_buf *s = xzalloc(sizeof(*s));
s->tcp = tcp;
s->ent = stub_sysent;