aboutsummaryrefslogtreecommitdiff
path: root/boot/boot_script.h
Commit message (Collapse)AuthorAgeFilesLines
* boot: remove unused function `boot_script_read_file'Justus Winter2014-11-211-4/+0
| | | | | | | | | | The unused function `boot_script_read_file' requires access to the default pager, which is privileged. * boot/boot.c (defpager): Remove now unused variable. (boot_script_read_file): Remove unused function. (main): Do not acquire port to the default pager. * boot/boot_script.h (boot_script_read_file): Remove declaration.
* 2002-05-28 Roland McGrath <roland@frob.com>Roland McGrath2002-05-291-2/+3
| | | | | | | | | | | * 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.
* 2001-08-17 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-1/+3
| | | | | | | | | | | | * 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.
* 2001-08-17 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-2/+2
| | | | | * boot_script.h: size_t -> unsigned int * boot_script.c: Don't #include <string.h>.
* 2001-08-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-3/+7
| | | | | | | | | | | * 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: Protect from multiple inclusion. (safe_gets): Remove decl. * boot_script.h (boot_script_exec_cmd): Change TASK arg type to task_t. * userland-boot.c: Likewise.
* 2001-08-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* *** empty log message ***Thomas Bushnell1996-08-011-1/+1
|
* Add decl of safe_gets.Michael I. Bushnell1996-04-151-35/+29
|
* (boot_script_read_file): Declare it.Roland McGrath1995-09-271-0/+4
|
* Updated by Shantanu Goel, to accept action keywords only inside $(...) andRoland McGrath1995-08-281-14/+15
| | | | only variable values inside ${...}.
* Initial revisionRoland McGrath1995-08-231-0/+91