exec 58 usr/server/exec/exec.h struct exec { exec 73 usr/server/exec/exec.h int (*el_probe)(struct exec *); /* probe routine */ exec 74 usr/server/exec/exec.h int (*el_load)(struct exec *); /* load routine */ exec 41 usr/server/exec/exec_conf.c extern int elf_probe(struct exec *); exec 42 usr/server/exec/exec_conf.c extern int elf_load(struct exec *); exec 45 usr/server/exec/exec_conf.c extern int script_probe(struct exec *); exec 46 usr/server/exec/exec_conf.c extern int script_load(struct exec *); exec 334 usr/server/exec/exec_elf.c elf_load(struct exec *exec) exec 341 usr/server/exec/exec_elf.c if (access(exec->path, X_OK) == -1) { exec 346 usr/server/exec/exec_elf.c if ((fd = open(exec->path, O_RDONLY)) == -1) exec 350 usr/server/exec/exec_elf.c error = load_exec((Elf32_Ehdr *)exec->header, exec->task, exec 351 usr/server/exec/exec_elf.c fd, &exec->entry); exec 353 usr/server/exec/exec_elf.c error = load_reloc((Elf32_Ehdr *)exec->header, exec->task, exec 354 usr/server/exec/exec_elf.c fd, &exec->entry); exec 364 usr/server/exec/exec_elf.c elf_probe(struct exec *exec) exec 369 usr/server/exec/exec_elf.c ehdr = (Elf32_Ehdr *)exec->header; exec 80 usr/server/exec/exec_execve.c struct exec exec; exec 104 usr/server/exec/exec_execve.c exec.path = path; exec 105 usr/server/exec/exec_execve.c exec.header = hdrbuf; exec 106 usr/server/exec/exec_execve.c exec.xarg1 = NULL; exec 107 usr/server/exec/exec_execve.c exec.xarg2 = NULL; exec 113 usr/server/exec/exec_execve.c DPRINTF(("exec: read header for %s\n", exec.path)); exec 114 usr/server/exec/exec_execve.c if ((error = read_header(exec.path)) != 0) exec 123 usr/server/exec/exec_execve.c if ((rc = ldr->el_probe(&exec)) != PROBE_ERROR) { exec 144 usr/server/exec/exec_execve.c if (access(exec.path, X_OK) == -1) { exec 164 usr/server/exec/exec_execve.c if (*exec.path != '\0') exec 165 usr/server/exec/exec_execve.c task_setname(new_task, basename(exec.path)); exec 170 usr/server/exec/exec_execve.c bind_cap(exec.path, new_task); exec 183 usr/server/exec/exec_execve.c if ((error = build_args(new_task, stack, exec.path, msg, exec 184 usr/server/exec/exec_execve.c exec.xarg1, exec.xarg2, &sp)) != 0) exec 191 usr/server/exec/exec_execve.c exec.task = new_task; exec 192 usr/server/exec/exec_execve.c if ((error = ldr->el_load(&exec)) != 0) exec 194 usr/server/exec/exec_execve.c if ((error = thread_load(t, (void (*)(void))exec.entry, sp)) != 0) exec 55 usr/server/exec/exec_script.c script_load(struct exec *exec) exec 65 usr/server/exec/exec_script.c script_probe(struct exec *exec) exec 67 usr/server/exec/exec_script.c char *hdrstr = exec->header; exec 91 usr/server/exec/exec_script.c exec->xarg1 = intarg; exec 92 usr/server/exec/exec_script.c exec->xarg2 = script; exec 95 usr/server/exec/exec_script.c exec->xarg1 = intarg; exec 96 usr/server/exec/exec_script.c exec->xarg2 = NULL; exec 98 usr/server/exec/exec_script.c strlcpy(script, exec->path, sizeof(script)); exec 99 usr/server/exec/exec_script.c exec->path = interp;