summaryrefslogtreecommitdiff
path: root/boot/boot_script.c
AgeCommit message (Collapse)Author
2003-01-042003-01-04 Roland McGrath <roland@frob.com>Roland McGrath
* 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.
2002-05-292002-05-28 Roland McGrath <roland@frob.com>Roland McGrath
* 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-172001-08-17 Roland McGrath <roland@frob.com>Roland McGrath
* 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-172001-08-17 Roland McGrath <roland@frob.com>Roland McGrath
* boot_script.h: size_t -> unsigned int * boot_script.c: Don't #include <string.h>.
2001-08-172001-08-16 Roland McGrath <roland@frob.com>Roland McGrath
* 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.
2001-08-172001-08-16 Roland McGrath <roland@frob.com>Roland McGrath
* 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.
1998-09-041998-09-04 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* boot_script.c: Include <string.h> instead of declaring memset here. Include <stdlib.h> instead of declaring malloc, free here.
1997-07-08(prompt_resume_task):Miles Bader
Pass more than a single character buffer to safe_gets.
1997-04-14Mon Mar 17 13:12:45 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell
* boot_script.c (boot_script_parse_line): Don't print gratuitous output noise.
1996-04-15Include <stdio.h>.Michael I. Bushnell
1995-09-28(read_file): Pass CMD->path for file name.Roland McGrath
(CHECK_CMDLINE_LEN): Update ARGV pointers after reallocating the line buffer.
1995-09-27(read_file): New function.Roland McGrath
(builtin_symbols): Add $(read-file) builtin.
1995-09-23(boot_script_parse_line): Ignore line beginning with #.Roland McGrath
1995-08-28Updated by Shantanu Goel, to accept action keywords only inside $(...) andRoland McGrath
only variable values inside ${...}.
1995-08-23Initial revisionRoland McGrath