Age | Commit message (Collapse) | Author |
|
* users.c (S_termctty_open_terminal): Use iohelp_create_empty_iouser.
|
|
* users.c (trivfs_S_io_select): Fix typo in last change.
|
|
* users.c (trivfs_S_io_select): Mask out SELECT_READ and/or
SELECT_WRITE if those accesses are not allowed by the peropen.
Don't keep old bits in AVAILABLE across waits, return only
what is true at the moment we return.
|
|
* users.c (trivfs_S_io_select): Don't diagnose an error for *TYPE
containing irrelevant bits (i.e. SELECT_URG). It's always ok to
ask even when the answer is always no.
|
|
* users.c (send_signal): Use ports_get_send_right.
|
|
* term.h, devio.c, users.c: Revert previous change. Do it this
way instead:
* users.c (report_carrier_error): New function.
(carrier_error): New static global variable.
(open_hook): Deal with errors from carrier open.
* devio.c (device_open_reply): Move the !RETURNCODE case out of
the "initial open" case and use report_carrier_error.
* term.h (report_carrier_error): Declare new function.
|
|
* term.h (NO_DEVICE): New macro, bit for termflags.
(termflags): Change type to uint_fast32_t.
* devio.c (device_open_reply): For D_NO_SUCH_DEVICE error reply, set
NO_DEVICE flag in termflags.
* users.c (open_hook): If NO_DEVICE flag set, return ENXIO immediately.
If we put out an open request, check for that bit as well as
NO_CARRIER changing in termflags and diagnose with ENXIO.
* Makefile (device_replyServer-CPPFLAGS): New variable, turn off
TypeCheck for this stub. This is necessary for error replies to get
through to our server-side functions in devio.c.
|
|
|
|
* users.c (trivfs_S_io_map): Renamed to ...
(trivfs_S_io_map_segment): ... here.
|
|
* ptyio.c (pty_io_read): Use mmap instead of vm_allocate.
* users.c (trivfs_S_io_read): Likewise.
|
|
* users.c (trivfs_S_file_chown): Either arg being -1 means don't
change that id.
|
|
* users.c (S_term_get_peername): Compare BOTTOM against the
correct value, and call ports_port_deref with the proper name.
Reported by Yamashita TAKAO (az207@epa.go.jp).
* devio.c (devio_desert_dtr): Cast &BITS correctly in call to
device_set_status.
(device_open_reply): Alwas clean open_pending no matter what. Use
ERR instead of ERRNO. On fake opens, close the device before
deallocating the port.
Reported by Mark Kettenis (kettenis@gnu.org).
Tue Mar 16 01:04:06 1999 Thomas Bushnell, BSG <tb@mit.edu>
* devio.c (open_pending): Make an enum.
(devio_desert_dtr): Don't close the device, just set the TM_HUP
modem bit, which should cause a hangup to occur.
(devio_assert_dtr): Don't always open the device, instead use
initial_open the first time, and schedule a fake open the other
times.
(initial_open): New function, guts from old device_assert_dtr.
(device_open_reply): Distinguish replies from initial and fake
opens appropriately.
(ports_do_mach_notify_send_once): Test and set open_pending using
new enum values.
|
|
* users.c (S_term_get_peername): Implement new RPC.
* users.c (S_term_get_nodename): Return ENOENT if the name is not
set.
|
|
* users.c (po_destroy_hook): Only reset state and hardware if
TTY_OPEN bit is set in TERMFLAGS.
|
|
* users.c (trivfs_S_io_revoke): Use ports_class_iterate.
|
|
* users.c (trivfs_S_io_revoke): Protect the revocation by blocking
all other rpcs.
|
|
* users.c (trivfs_S_io_revoke): Release global_lock before
beginning the iteration.
* users.c (trivfs_S_io_revoke): Add reply, reply_type args.
|
|
* main.c (main): Initialize status from underlying node.
* users.c (check_access_hook): New function. Correctly implement
access permission checking.
(trivfs_check_access_hook): Initialize with check_access_hook.
(trivfs_S_file_check_access): Removed.
|
|
* users.c (trivfs_S_io_revoke): Fix typos.
|
|
* users.c (trivfs_S_io_revoke): New function.
|
|
* users.c (trivfs_S_file_chmod): Clear S_ISVTX bit instead of
clearing all other bits.
|
|
* users.c (open_hook): Assert DTR if NO_CARRIER, even for CLOCAL.
This is the only thing that tells it to open the device.
|
|
* users.c: Include <hurd/fshelp.h> for fshelp_isowner decl.
|
|
* users.c (trivfs_S_file_chmod): Fix typo.
|
|
* users.c (trivfs_S_file_chmod): Turn off S_ISPARE too.
|
|
Add OPEN_COUNT hack to try and detect lossage.
|
|
Turn off S_ITRANS bits, and turn on S_IROOT in TERM_MODE.
|
|
* users.c: Include <hurd/iohelp.h>.
(trivfs_S_file_chmod): Bother to fill in ST.
|
|
* users.c (trivfs_modify_stat): Omit pointless assignment.
Fri Nov 15 17:37:12 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* users.c (open_hook): New arg syntax.
(trivfs_check_open_hook): Likewise.
* ptyio.c (pty_open_hook): Likewise.
* term.h (pty_open_hook): Likewise.
* users.c (S_termctty_open_terminal): New syntax of trivfs_open.
* users.c (trivfs_S_file_chown): Rewrite using idvecs.
(trivfs_S_file_chmod): Likewise.
|
|
* users.c (open_hook): Always assert DTR (even if O_NONBLOCK).
Don't return any errors if O_NONBLOCK and we don't have carrier.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ourselves.
(trivfs_S_file_chown): New routine, to override trivfs default.
(trivfs_S_file_chmod): Likewise.
|
|
|
|
|
|
|
|
|
|
clear.
|
|
|
|
|
|
trivfs_S_io_set_all_openmodes): If setting ICKY_ASYNC, then use call_asyncs.
(call_asyncs): New argument, FORCE, which use. All callers changed.
(init_users): Give our self send rights to the async id ports, since
hurd_sig_post uses COPY_SEND.
(trivfs_S_io_get_icky_async_id): Renamed from ..._get_async_icky.
(trivfs_S_file_set_size, trivfs_S_io_seek, trivfs_S_io_get_icky_async_id,
trivfs_S_io_async): Add reply port args.
(num_icky_async_peropens): New variable.
(po_create_hook, po_destroy_hook, trivfs_S_io_set_all_openmodes,
trivfs_S_io_set_some_openmodes, trivfs_S_io_clear_some_openmodes):
Use it to enable ICKY_ASYNC to be turned off.
|