Age | Commit message (Collapse) | Author |
|
* boot_script.c (boot_script_parse_line): Copy the file name into
malloc'd storage.
(add_arg): New arg TEXTLEN. Store malloc'd copy of TEXT.
(boot_script_parse_line): Update callers.
|
|
* boot_script.c (boot_script_set_variable): Values int -> integer_t.
(boot_script_define_function): Likewise.
(boot_script_parse_line): Likewise.
(struct sym, struct arg): Likewise.
(boot_script_exec): Likewise.
(builtin_symbols): Likewise.
* boot.c (main): Likewise.
* boot_script.h: Update decls.
|
|
* userland-boot.c (boot_script_insert_right): Take new result
parameter for send right name in target task.
(boot_script_insert_task_port): New function.
* boot_script.h: Update those two decls.
(VAL_TASK): New macro.
* boot_script.c (VAL_SYM, VAL_FUNC): Increase these constants.
(builtin_symbols): Use VAL_TASK for "task-create".
(boot_script_exec): Update caller of boot_script_insert_right.
Treat VAL_TASK like VAL_PORT, but call boot_script_insert_task_port.
|
|
* boot_script.h: size_t -> unsigned int
* boot_script.c: Don't #include <string.h>.
|
|
* userland-boot.c (boot_script_insert_right): New function.
* boot_script.h: Declare it.
* boot_script.c (boot_script_exec): Use that instead of
mach_port_insert_right.
|
|
* boot_script.h (struct cmd): Change `task' member type to `task_t'.
(boot_script_task_create, boot_script_task_resume,
boot_script_prompt_task_resume, boot_script_free_task): Declare new
functions that callers must define.
* userland-boot.c: Define those.
* boot_script.c (create_task, resume_task, prompt_resume_task): Use
those instead of direct Mach calls.
(free_cmd): Likewise.
(read_file): Function removed.
(builtin_symbols): Remove the "read-file" element.
* boot_script.h (boot_script_malloc, boot_script_free): Declare new
functions that callers must define.
* boot_script.c: All uses of malloc/free changed to use those instead.
* userland-boot.c: New file. Defines them using malloc/free.
* Makefile (SRCS, OBJS): Add it.
* boot.c (boot_script_malloc, boot_script_free): Old cruft functions
removed.
* boot_script.c (boot_script_parse_line): Take new first argument HOOK.
Store it in CMD->hook.
(main): Update caller.
(boot_script_exec): Pass CMD->hook as 1st arg to boot_script_exec_cmd.
(boot_script_exec_cmd): Take new first argument HOOK.
* boot.c (boot_script_exec_cmd): Likewise.
* boot_script.h (struct cmd): New member `void *hook'.
Update decls for HOOK arguments added.
|
|
* boot_script.c: Include <string.h> instead of declaring memset here.
Include <stdlib.h> instead of declaring malloc, free here.
|
|
Pass more than a single character buffer to safe_gets.
|
|
* boot_script.c (boot_script_parse_line): Don't print gratuitous
output noise.
|
|
|
|
(CHECK_CMDLINE_LEN): Update ARGV pointers after reallocating the line
buffer.
|
|
(builtin_symbols): Add $(read-file) builtin.
|
|
|
|
only variable values inside ${...}.
|
|
|