aboutsummaryrefslogtreecommitdiff
path: root/boot/boot_script.c
Commit message (Collapse)AuthorAgeFilesLines
* Modernize code by removing use of old style definitions.Flavio Cruz2023-04-031-1/+1
| | | | | Also add -Werror=old-style-definition to enforce new code. Message-Id: <ZBZ+8xf7GHy2RT/h@jupiter.tail36e24.ts.net>
* 2003-01-04 Roland McGrath <roland@frob.com>Roland McGrath2003-01-041-9/+9
| | | | | | | * 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-28 Roland McGrath <roland@frob.com>Roland McGrath2002-05-291-12/+15
| | | | | | | | | | | * 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-7/+18
| | | | | | | | | | | | * 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-1/+0
| | | | | * 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-15/+5
| | | | | | | * 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-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-73/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-04 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-09-041-8/+4
| | | | | * boot_script.c: Include <string.h> instead of declaring memset here. Include <stdlib.h> instead of declaring malloc, free here.
* (prompt_resume_task):Miles Bader1997-07-081-2/+2
| | | | Pass more than a single character buffer to safe_gets.
* Mon Mar 17 13:12:45 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-04-141-2/+8
| | | | | * boot_script.c (boot_script_parse_line): Don't print gratuitous output noise.
* Include <stdio.h>.Michael I. Bushnell1996-04-151-181/+148
|
* (read_file): Pass CMD->path for file name.Roland McGrath1995-09-281-2/+4
| | | | | (CHECK_CMDLINE_LEN): Update ARGV pointers after reallocating the line buffer.
* (read_file): New function.Roland McGrath1995-09-271-1/+11
| | | | (builtin_symbols): Add $(read-file) builtin.
* (boot_script_parse_line): Ignore line beginning with #.Roland McGrath1995-09-231-0/+3
|
* Updated by Shantanu Goel, to accept action keywords only inside $(...) andRoland McGrath1995-08-281-126/+103
| | | | only variable values inside ${...}.
* Initial revisionRoland McGrath1995-08-231-0/+861