aboutsummaryrefslogtreecommitdiff
path: root/term/devio.c
Commit message (Collapse)AuthorAgeFilesLines
* 1999-10-01 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-10-011-0/+7
| | | | | | | | | | | | | * 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.
* 1999-05-24 Mark Kettenis <kettenis@gnu.org>Roland McGrath1999-05-301-15/+25
| | | | | | | | | | | * devio.c: Include <assert.h>, <errno.h> and <error.h>. Do not include <stdio.h> and <sys/types.h>. Reorganize the order of inclusion of the header files a bit and document the baud-rate hackery. Include <termios.h> explicitely. (init_devio): Use new local variable ERR instead of ERRNO. Use error instead of perror and exit to report failure. (devio_desert_dtr): Declare BITS as `int' instead of `dev_status_t'.
* 1999-03-22 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-03-231-18/+20
| | | | * devio.c (initial_open): Fix typos.
* Wed Mar 17 16:32:05 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-03-171-63/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Thu Feb 18 00:57:30 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-02-181-1/+4
| | | | | * devio.c (devio_assert_dtr): Bother to set open_pending. Reported by OKUJI Yoshinori (okuji@kuicr.kyoto-u.ac.jp).
* Mon Oct 26 16:47:18 1998 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1998-11-161-5/+35
| | | | | | | | * devio.c (char_size_mask_xxx): New variable. (devio_set_bits): Don't munge c_cflag here. Instead, set char_size_mask_xxx. (device_read_reply_inband): Mask off high bits from the input to simulate less than 8-bit channels.
* 1998-09-04 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-10-201-38/+39
| | | | | * devio.c: Add #undef's for B19200, B38400, B57600, B115200, in case they are defined in <device/tty_status.h> too.
* (devio_set_bits): Only execute guts if CIGNORE isn't set.Miles Bader1996-10-041-32/+30
|
* *** empty log message ***Thomas Bushnell1996-08-291-1/+4
|
* (devio_abandon_physical_output): Don't do anything if carrier is off.Michael I. Bushnell1996-06-201-0/+5
|
* (device_open_reply): Use new ports_create_port.Michael I. Bushnell1996-05-091-3/+5
|
* (real_speed_to_bogus_speed): EXTB should be 38400, not 24800.Michael I. Bushnell1996-04-221-1/+1
|
* (devio_assert_dtr): Use ports_create_port instead of ports_allocate_port.Miles Bader1996-01-271-3/+7
|
* (devio_notice_input_flushed): New function.Michael I. Bushnell1995-12-011-0/+5
| | | | (devio_bottom): Add devio_notice_input_flushed.
* (devio_suspend_physical_output): Only if not already stopped.Michael I. Bushnell1995-12-011-2/+5
|
* (devio_start_output): Restart output if USER_OUTPUT_SUSP flag off andMichael I. Bushnell1995-12-011-0/+17
| | | | | | | output_stopped true. (output_stopped): New variable. (devio_suspend_physical_output): New function. (devio_bottom): Add devio_suspend_physical_output.
* (devio_start_output): Honor USER_OUTPUT_SUSP flag.Michael I. Bushnell1995-12-011-1/+6
|
* New function names.Michael I. Bushnell1995-11-301-9/+9
|
* (start_output): Add devio_ prefix; declare static.Michael I. Bushnell1995-11-301-21/+34
| | | | | | | | | | | | | (set_break): Likewise. (clear_break): Likewise. (abandon_physical_output): Likewise. (pending_output_size): Likewise. (assert_dtr): Likewise. (desert_dtr): Likewise. (set_bits): Likewise. (mdmctl): Likewise. (mdmstate): Likewise. (devio_bottom): New var.
* (ports_do_mach_notify_send_once): foo.Michael I. Bushnell1995-11-301-1/+2
|
* *** empty log message ***Michael I. Bushnell1995-11-301-2/+1
|
* (ports_do_mach_notify_send_once): New function.Michael I. Bushnell1995-11-301-1/+57
|
* Nil.Michael I. Bushnell1995-11-271-3/+4
|
* Initial revisionMichael I. Bushnell1995-08-311-0/+554