Home
last modified time | relevance | path

Searched refs:envc (Results 1 – 14 of 14) sorted by relevance

/openbmc/qemu/bsd-user/freebsd/
H A Dtarget_os_stack.h105 for (i = 0; i < bprm->envc; ++i) { in setup_initial_stack()
114 p = argvp = destp - (bprm->argc + bprm->envc + 2) * sizeof(abi_ulong); in setup_initial_stack()
150 ps_strs.ps_nenvstr = tswap32(bprm->envc); in setup_initial_stack()
151 for (i = 0; i < bprm->envc; ++i) { in setup_initial_stack()
H A Dtarget_os_elf.h69 static abi_ulong target_create_elf_tables(abi_ulong p, int argc, int envc, in target_create_elf_tables() argument
88 size += envc + argc + 2; in target_create_elf_tables()
135 sp = loader_build_argptr(envc, argc, sp, stringp); in target_create_elf_tables()
H A Dos-proc.c36 int argc, envc; in freebsd_exec_common() local
54 envc = 0; in freebsd_exec_common()
62 envc++; in freebsd_exec_common()
69 envp = g_new0(char *, envc + 1); in freebsd_exec_common()
/openbmc/qemu/linux-user/
H A Dlinuxload.c89 abi_ulong loader_build_argptr(int envc, int argc, abi_ulong sp, in loader_build_argptr() argument
97 sp -= (envc + 1) * n; in loader_build_argptr()
102 ts->info->envc = envc; in loader_build_argptr()
129 while (envc-- > 0) { in loader_build_argptr()
151 bprm->envc = count(envp); in loader_exec()
H A Dloader.h78 int argc, envc; member
86 abi_ulong loader_build_argptr(int envc, int argc, abi_ulong sp,
H A Dflatload.c484 for (i = 0; i < bprm->envc; ++i) { in load_flt_binary()
489 stack_len += (bprm->envc + 1) * 4; /* the envp array */ in load_flt_binary()
521 p = copy_strings(p, bprm->envc, bprm->envp); in load_flt_binary()
527 stack_len = bprm->envc + bprm->argc + 2; in load_flt_binary()
532 sp = loader_build_argptr(bprm->envc, bprm->argc, sp, p, in load_flt_binary()
H A Dqemu.h43 abi_ulong envc; member
H A Delfload.c2559 static abi_ulong create_elf_tables(abi_ulong p, int argc, int envc, in create_elf_tables() argument
2668 size += envc + argc + 2; in create_elf_tables()
2683 u_auxv = u_envp + (envc + 1) * n; in create_elf_tables()
2686 info->envc = envc; in create_elf_tables()
2757 for (i = 0; i < envc; ++i) { in create_elf_tables()
3906 bprm->p = copy_elf_strings(bprm->envc, bprm->envp, scratch, in load_elf_binary()
3917 bprm->p = copy_elf_strings(bprm->envc, bprm->envp, scratch, in load_elf_binary()
3987 bprm->p = create_elf_tables(bprm->p, bprm->argc, bprm->envc, &ehdr, info, in load_elf_binary()
H A Dsyscall.c8601 int argc, envc; in do_execv() local
8618 envc = 0; in do_execv()
8626 envc++; in do_execv()
8630 envp = g_new0(char *, envc + 1); in do_execv()
/openbmc/qemu/bsd-user/
H A Dbsdload.c98 abi_ulong loader_build_argptr(int envc, int argc, abi_ulong sp, in loader_build_argptr() argument
105 sp -= (envc + 1) * n; in loader_build_argptr()
121 while (envc-- > 0) { in loader_build_argptr()
186 bprm->envc = count(envp); in loader_exec()
H A Dqemu.h152 int argc, envc; member
161 abi_ulong loader_build_argptr(int envc, int argc, abi_ulong sp,
H A Delfload.c627 bprm->p = copy_elf_strings(bprm->envc, bprm->envp, bprm->page, bprm->p); in load_elf_binary()
810 bprm->p = target_create_elf_tables(bprm->p, bprm->argc, bprm->envc, in load_elf_binary()
/openbmc/qemu/bsd-user/openbsd/
H A Dtarget_os_elf.h66 static abi_ulong target_create_elf_tables(abi_ulong p, int argc, int envc, in target_create_elf_tables() argument
101 size += envc + argc + 2; in target_create_elf_tables()
144 sp = loader_build_argptr(envc, argc, sp, stringp); in target_create_elf_tables()
/openbmc/qemu/bsd-user/netbsd/
H A Dtarget_os_elf.h66 static abi_ulong target_create_elf_tables(abi_ulong p, int argc, int envc, in target_create_elf_tables() argument
101 size += envc + argc + 2; in target_create_elf_tables()
144 sp = loader_build_argptr(envc, argc, sp, stringp); in target_create_elf_tables()