Searched refs:emalloc2 (Results 1 - 12 of 12) sorted by relevance

/macosx-10.10/sudo-73/src/
H A Dalloc.h27 void *emalloc2(size_t, size_t);
39 void *emalloc2();
H A Dsudo_edit.c112 tf = emalloc2(nfiles, sizeof(*tf));
199 nargv = (char **) emalloc2(1 + nargc + 1, sizeof(char *));
326 nargv = (char **) emalloc2(nargc + 1, sizeof(char *));
H A Dalloc.c58 * emalloc2() and erealloc3() cannot allocate huge amounts on such a
88 * emalloc2() allocates nmemb * size bytes and exits with an error
92 emalloc2(nmemb, size) function
99 errorx(1, "internal error, tried to emalloc2(0)");
101 errorx(1, "internal error, emalloc2() overflow");
H A Dinterfaces.c129 (struct interface *) emalloc2(num_interfaces, sizeof(struct interface));
231 interfaces = (struct interface *) emalloc2(n, sizeof(struct interface));
H A Denv.c64 * emalloc2() and erealloc3() cannot allocate huge amounts on such a
262 env.envp = emalloc2(env.env_size, sizeof(char *));
476 ep = emalloc2(env.env_size, sizeof(char *));
692 env.envp = emalloc2(env.env_size, sizeof(char *));
H A Dsudo_nss.c226 user_groups = emalloc2(user_ngroups, sizeof(GETGROUPS_T));
H A Dexec.c386 fdsr = emalloc2(howmany(maxfd + 1, NFDBITS), sizeof(fd_mask));
387 fdsw = emalloc2(howmany(maxfd + 1, NFDBITS), sizeof(fd_mask));
H A Dset_perms.c518 groups = emalloc2(ngroups, sizeof(GETGROUPS_T));
H A Dsudo.c710 user_groups = emalloc2(user_ngroups, sizeof(GETGROUPS_T));
747 cmnd = dst = emalloc2(cmnd_size, 2);
765 av = (char **) emalloc2(ac + 3, sizeof(char *));
H A Dexec_pty.c1028 fdsr = emalloc2(howmany(maxfd + 1, NFDBITS), sizeof(fd_mask));
1029 fdsw = emalloc2(howmany(maxfd + 1, NFDBITS), sizeof(fd_mask));
H A Dsudoreplay.c983 sessions = emalloc2(sessions_size, sizeof(char *));
H A Dvisudo.c372 av = emalloc2(ac, sizeof(char *));

Completed in 196 milliseconds