/macosx-10.5.8/xnu-1228.15.4/bsd/sys/ |
H A D | malloc.h | 83 #define M_ZERO 0x0004 /* bzero the allocation */ macro
|
/macosx-10.5.8/xnu-1228.15.4/security/ |
H A D | mac_socket.c | 414 MALLOC(buffer, char *, mac->m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); 451 MALLOC(buffer, char *, mac->m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
|
H A D | mac_base.c | 607 mpc->mpc_labelname_count, M_MACTEMP, M_WAITOK | M_ZERO); 1322 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); 1368 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); 1794 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); 2100 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
|
H A D | mac_net.c | 453 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/dtrace/ |
H A D | dtrace_ptss.c | 153 struct dtrace_ptss_page* ptss_page = _MALLOC(sizeof(struct dtrace_ptss_page), M_TEMP, M_ZERO | M_WAITOK);
|
H A D | dtrace_glue.c | 393 wrap_timer_call_t *wrapTC = _MALLOC(sizeof(wrap_timer_call_t), M_TEMP, M_ZERO | M_WAITOK); 437 sizeof(cyc_omni_handler_t), M_TEMP, M_ZERO | M_WAITOK); 507 wrap_thread_call_t *wrapTC = _MALLOC(sizeof(wrap_thread_call_t), M_TEMP, M_ZERO | M_WAITOK); 602 for (i = 0; i < NSOFT_STATES; ++i) soft[i] = _MALLOC(size, M_TEMP, M_ZERO | M_WAITOK);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/ |
H A D | nfs_gss.c | 295 MALLOC(cp, struct nfs_gss_clnt_ctx *, sizeof(*cp), M_TEMP, M_WAITOK|M_ZERO); 350 MALLOC(cp, struct nfs_gss_clnt_ctx *, sizeof(*cp), M_TEMP, M_WAITOK|M_ZERO); 471 MALLOC(gsp, struct gss_seq *, sizeof(*gsp), M_TEMP, M_WAITOK|M_ZERO); 670 MALLOC(cp->gss_clnt_verf, u_char *, verflen, M_TEMP, M_WAITOK|M_ZERO); 1033 nfsm_rndup((cp->gss_clnt_seqwin + 7) / 8), M_TEMP, M_WAITOK|M_ZERO); 1460 M_TEMP, M_WAITOK|M_ZERO); 1772 MALLOC(cp, struct nfs_gss_svc_ctx *, sizeof(*cp), M_TEMP, M_WAITOK|M_ZERO); 2264 nfsm_rndup((cp->gss_svc_seqwin + 7) / 8), M_TEMP, M_WAITOK|M_ZERO);
|
H A D | nfs_lock.c | 454 M_TEMP, M_WAITOK | M_ZERO);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | kern_malloc.c | 573 if (flags & M_ZERO)
|
H A D | posix_sem.c | 466 MALLOC(pinfo, struct pseminfo *, sizeof(struct pseminfo), M_SHM, M_WAITOK|M_ZERO); 528 MALLOC(pnode, struct psemnode *, sizeof(struct psemnode), M_SHM, M_WAITOK|M_ZERO); 539 MALLOC(pcp, struct psemcache *, sizeof(struct psemcache), M_SHM, M_WAITOK|M_ZERO);
|
H A D | posix_shm.c | 476 MALLOC(pinfo, struct pshminfo *, sizeof(struct pshminfo), M_SHM, M_WAITOK|M_ZERO); 559 MALLOC(pnode, struct pshmnode *, sizeof(struct pshmnode), M_SHM, M_WAITOK|M_ZERO); 570 MALLOC(pcp, struct pshmcache *, sizeof(struct pshmcache), M_SHM, M_WAITOK|M_ZERO);
|
H A D | sysv_sem.c | 253 M_SYSVSEM, M_WAITOK | M_ZERO); 269 * "un_proc" set to 0 (i.e. NULL) by the M_ZERO flag to MALLOC() above, 315 M_SYSVSEM, M_WAITOK | M_ZERO); 349 * "sem_base" and "sem_perm.mode" set to 0 (i.e. NULL) by the M_ZERO 396 M_SYSVSEM, M_WAITOK | M_ZERO);
|
H A D | kern_core.c | 240 MALLOC(alloced_name, char *, MAXPATHLEN, M_TEMP, M_NOWAIT | M_ZERO);
|
H A D | tty_ptmx.c | 331 MALLOC(new_ptmx_ioctl, struct ptmx_ioctl *, sizeof(struct ptmx_ioctl), M_TTYS, M_WAITOK|M_ZERO); 354 MALLOC(new_pis_ioctl_list, struct ptmx_ioctl **, sizeof(struct ptmx_ioctl *) * (_state.pis_total + PTMX_GROW_VECTOR), M_TTYS, M_WAITOK|M_ZERO);
|
H A D | kern_subr.c | 443 (u_long)hashsize * sizeof(*hashtbl), type, M_WAITOK|M_ZERO);
|
H A D | kern_credential.c | 782 MALLOC(kip, struct kauth_identity *, sizeof(*kip), M_KAUTH, M_WAITOK | M_ZERO); 2356 M_KAUTH, M_WAITOK | M_ZERO);
|
H A D | sys_generic.c | 997 MALLOC(sel->ibits, u_int32_t *, nbytes, M_TEMP, M_WAITOK | M_ZERO); 1000 MALLOC(sel->obits, u_int32_t *, nbytes, M_TEMP, M_WAITOK | M_ZERO);
|
H A D | mcache.c | 273 malloc_wait | M_ZERO);
|
H A D | uipc_mbuf.c | 895 M_TEMP, M_WAITOK | M_ZERO); 1024 M_TEMP, M_WAITOK | M_ZERO); 1033 M_WAITOK | M_ZERO); 4938 M_WAITOK | M_ZERO);
|
H A D | kern_proc.c | 1476 MALLOC(l, struct lctx *, sizeof(struct lctx), M_LCTX, M_WAITOK|M_ZERO);
|
H A D | tty.c | 2564 MALLOC(tp, struct tty *, sizeof(struct tty), M_TTYS, M_WAITOK|M_ZERO);
|
H A D | uipc_syscalls.c | 1861 MALLOC(sa, struct sockaddr *, len, M_SONAME, M_WAITOK | M_ZERO);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/ |
H A D | ip_dummynet.c | 921 q = _MALLOC(sizeof(*q), M_DUMMYNET, M_DONTWAIT | M_ZERO); 1603 M_DUMMYNET, M_DONTWAIT | M_ZERO); 1665 x = _MALLOC(sizeof(struct dn_pipe), M_DUMMYNET, M_DONTWAIT | M_ZERO) ; 1720 x = _MALLOC(sizeof(struct dn_flow_set), M_DUMMYNET, M_DONTWAIT | M_ZERO);
|
H A D | ip_fw2.c | 1027 M_IPFW, M_NOWAIT | M_ZERO); 1061 r = _MALLOC(sizeof *r, M_IPFW, M_NOWAIT | M_ZERO);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/net/ |
H A D | if.c | 454 ifc->ifc_units = _MALLOC(len, M_CLONE, M_WAITOK | M_ZERO);
|