aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 2001-08-20 Roland McGrath <roland@frob.com>Roland McGrath2001-08-201-10/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | * opts-std-startup.c: diskfs_boot_flags -> diskfs_boot_command_line. (OPT_BOOT_CMDLINE): Renamed from OPT_BOOTFLAGS. (startup_options): --bootflags -> --multiboot-command-line (parse_startup_opt): Parse it. * diskfs.h: diskfs_boot_flags -> diskfs_boot_command_line. (diskfs_boot_filesystem): New macro. * init-main.c (diskfs_init_main): Use it. * init-init.c (diskfs_init_diskfs): Likewise. * console.c (diskfs_console_stdio): Likewise. * boot-start.c (_diskfs_boot_privports): Likewise. (diskfs_start_bootstrap): Split boot_command_line into words and pass those arguments to init instead of diskfs_bootflags. * opts-std-startup.c (_diskfs_boot_pause): New variable. (OPT_BOOT_PAUSE): New macro. (startup_options): Add --boot-debug-pause. (parse_startup_opt): Parse it. * boot-start.c (diskfs_boot_init_program): New variable. * diskfs.h: Declare it. * boot-start.c (default_init): Variable removed. (diskfs_start_bootstrap): Use diskfs_boot_init_program instead of default_init or prompting under -i. * opts-std-startup.c (OPT_BOOT_INIT_PROGRAM): New macro. (startup_options): Add --boot-init-program. (parse_startup_opt): Parse it.
* 2001-08-17 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-08-172-0/+14
| | | | * changelog: Update to current version.
* .Roland McGrath2001-08-171-0/+7
|
* 2001-08-17 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-08-171-1/+7
| | | | | | * userland-boot.c (boot_script_task_create): Suspend the newly created task as the protocol requires. (boot_script_insert_right): Fix the error message.
* .Roland McGrath2001-08-171-0/+10
|
* 2001-08-17 Roland McGrath <roland@frob.com>Roland McGrath2001-08-173-11/+31
| | | | | | | | | | | | * 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.
* .Roland McGrath2001-08-171-0/+5
|
* 2001-08-17 Roland McGrath <roland@frob.com>Roland McGrath2001-08-172-3/+2
| | | | | * boot_script.h: size_t -> unsigned int * boot_script.c: Don't #include <string.h>.
* .Roland McGrath2001-08-171-0/+11
|
* 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-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-0/+13
| | | | | | | | | * 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 (boot_script_exec_cmd): Change TASK arg type to task_t. * userland-boot.c: Likewise.
* .Roland McGrath2001-08-172-0/+37
|
* 2001-08-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-173-6/+11
| | | | | | | * Makefile (OBJS): Add userland-boot.o here. Add a vpath to find userland-boot.c in boot/ too. * bootstrap.c (parse_script): Pass new arg to boot_script_parse_line. * load.c: Include <stddef.h> before "boot_script.h".
* 2001-08-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-14/+3
| | | | | | | | | | | | | | | | | | * 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.
* 2001-08-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-2/+3
| | | | | | | | | | * 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.
* 2001-08-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-0/+82
| | | | | | | | | | | | | | | | | | | | * 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.
* 2001-08-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-172-76/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* GC some stale itemsRoland McGrath2001-08-171-14/+1
|
* 2001-08-17 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-08-172-4/+5
| | | | | * ialloc.c (diskfs_alloc_node): Remove warnings about stale nonzero st_blocks or st_size.
* .Roland McGrath2001-08-171-0/+8
|
* 2001-08-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-8/+14
| | | | | * inode.c (write_node): Leave i_size, i_blocks, i_translator unchanged when the inode has been deleted. Suggested by Marcus Brinkmann.
* 2001-08-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-4/+1
| | | | | * dir.c (diskfs_dirremove_hard): Remove redundant DP->dn_set_mtime set. Noticed by Marcus Brinkmann.
* .Roland McGrath2001-08-151-0/+11
|
* 2001-08-15 Roland McGrath <roland@frob.com>Roland McGrath2001-08-154-26/+70
| | | | | | | | | | | * sizes.c: New file, a list of prime numbers useful for table sizes. * priv.h (_ihash_sizes, _ihash_nsizes): Declare. (_ihash_nextprime): Don't. * ihash.c (ihash_add): Select sizes from the _ihash_sizes array instead of using _ihash_nextprime. * Makefile: Clean up whitespace, reorder all the variable definitions. (SRCS): Remove primes.c, add sizes.c instead. (OBJS): Define dynamically.
* .Roland McGrath2001-08-152-0/+27
|
* 2001-08-12 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-08-152-3/+4
| | | | | | | | * pager.c: Include <errno.h>. (pager_read_page): Use memset, not bzero. * storeio.c (check_open_hook): Typo fix in comment. (trivfs_modify_stat): STORE->size is a store_offset_t. It not a vm_size_t.
* 2001-08-12 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-08-152-8/+9
| | | | | | | | | | * set.c: Do not include <malloc.h>. Include <stdlib.h>, <errno.h> and <mach.h>. (store_set_runs): Use memcpy, not bcopy. (store_set_name): Use strdup, not a strlen, malloc and strcpy. * zero.c (zero_read): When checking if mmap failed, compare against MAP_FAILED, not -1. Use memset, not bzero.
* 2001-08-12 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-08-152-9/+14
| | | | | | | | | | | * copy.c (copy_read): The protocol dictates that *LEN is in bytes, not pages. (copy_write): Be sure that the buffer passed to vm_read is page-aligned. When determining how much to copy, use LEN, not the uninitialized *AMOUNT. (copy_clone): Use memcpy, not bcopy. * derive.c: Include <sys/types.h> and <mach.h>. (_store_derive): Initialize STORE->wrap_src.
* 2001-08-14 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-08-142-1/+9
| | | | | * mgt.c (S_proc_dostop): If task_threads fails, resume the suspended task.
* .Roland McGrath2001-08-101-0/+5
|
* 2001-08-10 Roland McGrath <roland@frob.com>Roland McGrath2001-08-101-5/+4
| | | | | * showtrans.c (main): Use %.*s formats to be robust in the face of an unterminated argz in a translator setting.
* 2001-08-09 Roland McGrath <roland@frob.com>Roland McGrath2001-08-102-2/+2
| | | | | | * inode.c (diskfs_get_translator): Fail with EFTYPE if the length field stored on disk is unreasonable. Don't crash on ENOMEM. Use memcpy instead of bcopy.
* .Roland McGrath2001-08-102-0/+12
|
* 2001-08-09 Roland McGrath <roland@frob.com>Roland McGrath2001-08-102-8/+21
| | | | | | * inode.c (diskfs_get_translator): Fail with EFTYPE if the length field stored on disk is unreasonable. Don't crash on ENOMEM. Use memcpy instead of bcopy.
* .Roland McGrath2001-08-061-0/+8
|
* 2001-08-06 Roland McGrath <roland@frob.com>Roland McGrath2001-08-061-1/+1
| | | | | * wait.c (S_proc_wait: reap): Set *PID_STATUS to CHILD->p_pid. Reported by Neal H Walfield <neal@cs.uml.edu>.
* 2001-08-06 Roland McGrath <roland@frob.com>Roland McGrath2001-08-061-1/+1
| | | | | * mgt.c (allocate_proc): Don't zero P->p_pi. Reported by Neal H Walfield <neal@cs.uml.edu>.
* .Roland McGrath2001-08-051-0/+5
|
* 2001-08-05 Roland McGrath <roland@frob.com>Roland McGrath2001-08-051-14/+81
| | | | | * wait.c (sample_rusage): New function. (S_proc_mark_exit): Call it.
* .Roland McGrath2001-08-041-0/+10
|
* 2001-08-04 Roland McGrath <roland@frob.com>Roland McGrath2001-08-042-44/+63
| | | | | | | | | | * proc.h (struct proc): New members p_rusage, p_child_rusage. * wait.c (rusage_add): New static function. (alert_parent): Use it to add dead child's p_rusage into parent's p_child_rusage. (S_proc_wait): Fill *RU out param with CHILD->p_rusage, not just zeros. Rewrote subfunction child_ready and its two callers into new subfunction reap to reduce duplicated code.
* 2001-08-04 Roland McGrath <roland@frob.com>Roland McGrath2001-08-041-0/+3
| | | | * mgt.c (process_has_exited): Call ports_interrupt_rpcs last thing.
* .Roland McGrath2001-08-041-0/+10
|
* 2001-08-04 Roland McGrath <roland@frob.com>Roland McGrath2001-08-041-20/+18
| | | | | | | | | * mgt.c (S_proc_reauthenticate): Release global_lock while making RPC. Don't mach_port_deallocate an argument port when returning an error, because mig does it for us. 2001-08-03 Roland McGrath <roland@frob.com> * mgt.c (allocate_proc): Use memset instead of lots of 0 initializers.
* .Roland McGrath2001-08-041-0/+4
|
* 2001-08-03 Roland McGrath <roland@frob.com>Roland McGrath2001-08-041-3/+4
| | | | * Makefile (HURDLIBS): Define it so we link in libshouldbeinlibc.
* 2001-06-19 Roland McGrath <roland@frob.com>Roland McGrath2001-08-021-17/+34
| | | | * dir-lookup.c (diskfs_S_dir_lookup): Handle symlinks to "".
* .Roland McGrath2001-08-021-0/+4
|
* 2001-08-01 Roland McGrath <roland@frob.com>Roland McGrath2001-08-021-22/+8
| | | | * mgt.c (genpid): Rewritten.