Age | Commit message (Collapse) | Author |
|
|
|
|
|
(S_io_reauthenticate): Use new interface.
|
|
|
|
|
|
target installed, and that's OK for many users.
|
|
|
|
|
|
|
|
(SRCS): Remove tcattr.c.
|
|
(S_tioctl_tiocgeta, S_tioctl_tiocseta, S_tioctl_tiocsetaf, term_modes,
term_ccs, term_speeds):
Functions & variables removed.
|
|
(uxboot.0, uxboot.1): Use automatic vars in cmds instead of gratuitous
redundancy.
(LDFLAGS-uxboot.0): Remove useless indirection through variable.
|
|
Moved here from boot.c
|
|
[!UX] (init_termstate, restore_termstate): New hurd versions of these funcs.
|
|
|
|
Use O_RDONLY, not 0 (kind of ironic, this...).
(load_image):
Give the filename with the error message (and a newline).
|
|
If UX is defined, include "ux.h", else define hurdish stuff.
(main): Use get_privileged_ports instead of task_by_pid.
(load_image, boot_script_read_file, main, do_mach_notify_no_senders,
do_mach_notify_dead_name): Use host_exit instead of uxexit.
(boot_script_read_file): Use host_stat instead of uxstat.
(init_termstate, S_tioctl_tiocseta): Use sg_flags field in struct sgttyb.
|
|
(COMMON-OBJS, UX-OBJS): New macros.
(OBJS): Inherit most names from $(COMMON-OBJS).
(LCLHDRS): Add ux.h.
(LDFLAGS): Use target-specific value.
(uxboot.0-LDFLAGS): New macro (with contents from old LDFLAGS).
(uxboot.o, uxboot.0): New targets.
(uxboot): Target renamed from boot.a.
|
|
|
|
(read_reply):
Set SHOULD_READ before attempting lock.
Use spin_try_lock() instead of spin_lock(), and abort if we can't get it.
Clear SHOULD_READ after getting the lock.
(ds_device_read, ds_device_read_inband, S_io_read):
Call unlock_readlock instead of directly unlocking READLOCK.
Don't block SIGIO.
(unlock_readlock): New function.
(main): Don't trap SIGMSG & SIGEMSG.
(SIGMSG, SIGEMSG): Macros deleted.
|
|
Deallocate our send right to it when we no longer need it.
(ds_device_read_inband): Unlock readlock properly.
(do_mach_notify_no_senders): Exit only when both pseudo_console and
pseudo_master_device_port have no senders.
|
|
|
|
(read_reply): Check FIONREAD before dequeueing QR so that we don't
abandon requests. Lock READLOCK around FIONREAD/read pair.
(ds_device_read): Lock READLOCK around FIONREAD/read pair.
(ds_device_read_inband): Likewise.
(S_io_read): Likewise.
|
|
(S_exec_*): Functions removed.
(boot_script_task_port): Variable removed.
(boot_script_task_*, boot_script_port_*): Functions removed.
|
|
|
|
(CHECK_CMDLINE_LEN): Update ARGV pointers after reallocating the line
buffer.
|
|
(uxfstat): Renamed from fstat; use struct uxstat * for arg.
(boot_script_read_file): Use those.
Return the memory object port, not zero.
|
|
|
|
(builtin_symbols): Add $(read-file) builtin.
|
|
|
|
(defpager): New variable.
(main): Set it up.
(boot_script_read_file): New function.
(useropen_dir): New variable.
(useropen): New function.
(load_image): Call it instead of open.
(main): Grok -D arg to set useropen_dir.
|
|
|
|
On boot script error, write script line with error msg.
|
|
|
|
|
|
|
|
(__mig_dealloc_reply_port): Remove __ from call to mach_port_mod_refs.
(main): Check for `d' in BOOTSTRAP_ARGS, not BOOT_ARGS. Don't declar
MSG static.
|
|
|
|
(ds_device_read): Block SIGIO around critical section.
(ds_device_read_inband): Likewise.
(S_io_read): Likewise.
|
|
only variable values inside ${...}.
|
|
(main): Use boot_script_set_variable instead of various magic variables.
Under -d, pause between parsing bootscript and executing it.
|
|
|
|
(OBJS): Add boot_script.o.
(LCLHDRS): New variable.
(HURDLIBS): Variable removed.
(boot): Depend on ../libthreads/libthreads.a.
|
|
(main): Don't interpret switches. Instead of servers, take command line
argument of boot script file name. Read the file and use boot_script
functions to parse and execute its directives.
(boot_script_*): New variables and functions for boot_script callbacks.
|
|
|
|
(__mig_get_reply_port, __mig_put_reply_port, __mig_dealloc_reply_port,
mig_get_reply_port, mig_put_reply_port, mig_dealloc_reply_port):
Provide better versions of these routines that won't leak reply ports.
|
|
(SRCS): Add mach-crt0.c.
(LDFLAGS): Add -nostartfiles (as we now use mach-crt0.o).
|
|
(__mig_get_reply_port, __mig_dealloc_reply_port, __mig_put_reply_port):
New functions, to avoid using hurdish versions.
|
|
|
|
|