Age | Commit message (Collapse) | Author |
|
(hol_entry_help): Print the right documentation string for each entry.
(argp_help): Renamed from argp_usage.
(make_hol): Deal with a null value of OPT. If there are no entries, don't
define the ENTRIES or SHORT_OPTIONS fields.
(hol_free): Don't free ENTRIES or SHORT_OPTIONS unless there are any.
(hol_sort): Don't sort unless there are some entries.
(hol_usage): Don't do anything unless there are some entries.
(hol_sort): Sort int he correct order.
(hol_append): Implement.
(argp_help): Add the ARGP_HELP_SHORT_USAGE case.
|
|
Update STATE.argp when adding a wrapper to implement the --help option.
In general, use the version of variables that are in STATE.
Update STATE.index in the case where getopt returns EOF.
Correctly translate options.
(argp_default_parser, argp_parse): Rename uses of argp_usage* to argp_help*.
(argp_parse):
Deal with null parser or option fields.
If an argp has neither a parser or any options, don't put it in GROUPS.
Use comparison with EGROUP, rather than testing the parser field, the end
test for iteration over GROUPS.
(argp_parse): Pass in the right value for GROUPS to convert_options.
|
|
(ARGP_HELP_STD_HELP): Use ARGP_HELP_SHORT_USAGE instead of ARGP_HELP_USAGE.
|
|
storage gets used after parse_opt returns.
(options): Converted to argp format.
(main): Use argp, not getopt.
(usage, USAGE, SHORT_OPTIONS): Deleted.
(arg_doc, doc): New variables.
Include <argp.h> not <getopt.h>.
|
|
(LCLHDRS): Add line.h and argp.h.
|
|
Change type of ADDRESSES to off_t **, and add BLOCK_SIZE parameter.
|
|
|
|
(LCLHDRS): Add priv.h and execmutations.h.
(exec-MIGSFLAGS): New variable.
(exec): Depend on livtrivfs, libthreads, libshouldbeinlibc.
|
|
|
|
Main program split out into main.c.
(std_lock): New variable (rwlock).
(do_exec): Acquire reader lock to access std_ints and std_ports.
(S_exec_setexecdata): Acquire writer lock to change them.
|
|
($(target)): Use it in link command.
($(libname).so): Likewise.
Use $^ instead of $+.
|
|
|
|
Add necessary includes.
|
|
Add values for the dealloc parameters to file_exec (all false).
Give away our send right to TASK when we do file_exec.
Initialize BOOTSTRAP & TASK so the cleanup code doesn't get confused.
|
|
|
|
Put all the group attributes into structures which get stored in the GROUPS
array, rather than having a separate array for each.
Implement ARGP_KEY_NO_ARGS in a better way.
|
|
|
|
(ARGP_KEY_NO_ARGS): New macro.
|
|
(exec_exec, exec_init, exec_setexecdata): Use file_t for receiver.
(exec_exec): Use mach_port_send_t for FILE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Include cthreads.h and assert.h.
|
|
Change type of ADDRESSES to off_t **, and add the BLOCK_SIZE parameter.
|
|
Change type of RUNS to off_t **, and add the BLOCK_SIZE parameter.
|
|
|
|
|
|
(fs-MIGSFLAGS, io-MIGSFLAGS, ifsock-MIGSFLAGS): New variables.
(fsys-MIGSFLAGS): Also import fsmutations.h.
(OTHERSRCS): Remove boot-parse.c; add filedev.c & machdev.c.
|
|
OPT_DEVICE_MASTER_PORT): New defines.
(std_long_opts, parse_std_startup_opt): Add the --device-master-port,
--host-priv-port, --exec-server-task, and --bootflags options.
|
|
|
|
(diskfs_start_bootstrap): Use diskfs_boot_flags instead of diskfs_bootflagarg.
(diskfs_start_bootstrap, start_execserver): Look for flags directly in
diskfs_boot_flags, instead of using the old diskfs_bootflags.
(diskfs_S_exec_startup): Use get_console to get the console device.
(get_console): New function.
|
|
|
|
(diskfs_parse_bootargs): Function deleted.
(diskfs_init_diskfs): Now returns error_t.
(diskfs_get_file_device, diskfs_get_mach_device): New funcs.
(diskfs_boot_flags): New variable.
(diskfs_bootflags, diskfs_bootflagarg): Variables deleted.
|
|
|
|
|
|
Add ADDRESS_UNITS out parameter.
(dir_link): Swap the DIR and FILE parameters.
|
|
|
|
|