summaryrefslogtreecommitdiff
path: root/term/term.h
AgeCommit message (Collapse)Author
2004-03-052004-03-05 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* term.h (QUEUE_LOWAT): Increase to 200. (QUEUE_HIWAT): Increase to 8100.
2003-07-292003-04-25 Alfred M. Szmidt <ams@kemisten.nu>Marcus Brinkmann
* term.h (rdev): Change type to dev_t.
2002-06-262002-06-25 Roland McGrath <roland@frob.com>Roland McGrath
* term.h (struct bottomhalf): New member `fini'. * hurdio.c (hurdio_fini): New function. (hurdio_bottom): Use it. * devio.c (devio_fini): New function. (devio_bottom): Use it. * ptyio.c (ptyio_bottom): Add 0 entry for `fini'.
2002-06-252002-06-25 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* term.h (struct bottomhalf): New member GWINSZ. * devio.c (devio_bottom): Add new member. * ptyio.c (ptyio_bottom): Likewise. * hurdio.c (hurdio_bottom): Likewise. (hurdio_gwinsz): New function. (tioc_caps): Change type to unsigned int. (TIOC_CAP_GWINSZ): New symbol. * users.c (open_hook): Call GWINSZ of bottom layer after establishing the carrier.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* ptyio.c (pty_io_readable): int -> size_t in argument type. * term.h: Update decl. * users.c (trivfs_S_io_write): int -> size_t in AMT argument type. (trivfs_S_io_readable): Likewise. (trivfs_S_io_read): Likewise. Also u_int -> size_t, off_t -> loff_t. (trivfs_S_io_write): Likewise. (trivfs_S_io_map): Add reply port args.
2002-02-10Update copyright year.Marcus Brinkmann
2002-02-102002-02-10 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* term.h: Declare rdev. * main.c (options): New variable. (parse_opt): Handle case `n' to set rdev number. Also return EINVAL if terminal type is invalid. * users.c (trivfs_modify_stat): Set ST->st_rdev to global rdev.
2002-02-102002-02-10 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* hurdio.c: New file. * Makefile (SRCS): Add hurdio.c. * term.h: Add hurdio_bottom declaration. * main.c: Add T_HURDIO to enum of tty_type. (parse_opt): Add case for hurdio bottom handler. (term_argp): Likewise. (main): Likewise.
2002-02-102002-02-10 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* main.c: Include `argp.h' and `version.h'. (argp_program_version): New global variable. (tty_name, tty_type, tty_arg): Likewise. (parse_opt): New function. (term_argp): New global variable. (main): Call argp_parse, use new global variables to parse the options. Remove TYPE variable. Get the bootstrap port after checking the argument line. * term.h (pterm_name): Remove variable. (tty_arg): Declare variable. * devio.c (initial_open): Use tty_arg instead pterm_name. (devio_assert_dtr): Likewise.
2002-02-102002-02-10 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* term.h: Include `hurd/hurd_types.h'. (struct bottomhalf): Change the return types of the following members from void to error_t: abandon_physical_output, suspend_physical_output, notice_input_flushed, desert_dtr, set_break, clear_break, start_output, set_bits (which now takes an struct termios * as argument), mdmctl and mdmstate (which now takes an int * as argument). Add new members init and type. (bottom): Define as const. (devio_bottom, ptyio_bottom): Declare as const. (drop_output): Change return type from void to error_t. (ptyio_init): Remove prototype. * devio.c (devio_abandon_physical_output): Change return value to error_t, and return 0. (devio_suspend_physical_output): Likewise. (devio_notice_input_flushed): Likewise. (devio_desert_dtr): Likewise. (devio_set_break): Likewise. (devio_clear_break): Likewise. (devio_start_output): Likewise. (devio_set_bits): Likewise. (devio_mdmctl): Likewise. (devio_mdmstate): Likewise. (init_devio): Rename to ... (devio_init): ... this. Do not give constructor attribute. Change return type to error_t, and return an error value, rather than bailing out. Declare as static. (devio_bottom): Add type TERM_ON_MACHDEV and init function devio_init. (devio_set_bits): Accept new argument STATE and use that to work out the terminal state, rather than changing the global termstate. (devio_mdmstate): Accept new argument STATE and use that to return the bits. * ptyio.c: Do not include `hurd/hurd_types.h'. (ptyio_suspend_physical_output): Change return value to error_t, and return 0. Likewise. (ptyio_notice_input_flushed): Likewise. (ptyio_desert_dtr): Likewise. (ptyio_set_bits): Likewise. (ptyio_set_break): Likewise. (ptyio_clear_break): Likewise. (ptyio_mdmctl): Likewise. (ptyio_start_output): Likewise. (ptyio_abandon_physical_output): Likewise. (ptyio_mdmstate): Likewise, and accept new argument STATE. (ptyio_init): Declare as static and change return type to error_t. (ptyio_bottom): Add type TERM_ON_MASTERPTY and init function ptyio_init. (ptyio_set_bits): Accept new argument STATE and use that to work out the terminal state, rather than changing the global termstate. (ptyio_mdmstate): Accept new argument STATE and use that to return the bits. * munge.c (drop_output): Change return value to error_t. Only clear queue if there was no error. * users.c (S_term_get_bottom_type): Just return bottom->type. (set_state): Rework logic to take possible errors into account, and to delay changing the termstate until we know that we won't fail. (S_tioctl_tiocflush): Return errors properly, and clear queue only if notice_input_flushed succeeded. (open_hook): Save error value of set_bits. Save old termflags and restore them if if set_bits failed. Call set_bits with correct arguments. (S_tioctl_tiocmods): Set err to result of mdmctl. (S_tioctl_tiocmset): Likewise. (S_tioctl_tiocmbic): Likewise. (S_tioctl_tiocmbis): Likewise. (S_tioctl_tioccdtr): Likewise. (S_tioctl_tiocsdtr): Likewise. (S_tioctl_tioccbrk): Likewise for clear_break. (S_tioctl_tiocsbrk): Likewise for set_break. (S_tioctl_tiocstart): Likewise for start_output. Save old termflags and restore them if if start_output failed. (S_tioctl_tiocstop): Likewise for stop_output. (S_trivfs_io_write): Abort the operation if start_output fails. Do not call start_output if it just failed, or if there was no data to be written. * main.c (main): Initialize bottom handler (rather than special casing this for ptyio). * users.c (open_hook): Use memcpy instead bcopy and memset instead bzero. (S_tioctl_tiocgeta): Likewise. (set_state): Likewise. (open_hook): Likewise. * munge.c (rescan_inputq): Likewise.
2002-01-30 * term.h (pty_io_select): Likewise.Marcus Brinkmann
1999-10-041999-10-04 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* 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.
1999-10-011999-10-01 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* 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-07-241999-07-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* term.h (ILCASE, OLCASE): Use IUCLC, OLCUC if defined.
1999-07-111999-07-11 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* term.h: Add #include <sys/mman.h>.
1998-07-201998-07-20 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* term.h (clear_queue): Change return type to void.
1996-11-18Mon Nov 18 18:16:29 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell
* 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.
1996-08-15*** empty log message ***Thomas Bushnell
1996-08-12*** empty log message ***Thomas Bushnell
1996-08-12*** empty log message ***Thomas Bushnell
1996-07-17(term_owner, term_group, term_mode): New variables.Michael I. Bushnell
1996-04-24Include <fcntl.h>.Miles Bader
1996-04-24(enqueue_internal): Go back to only using call_asyncs when inputq becomesMiles Bader
non-empty. (SUPPRESS_ASYNC): Flag removed.
1996-04-24(enqueue_internal): Use call_asyncs on every character.Miles Bader
(SUPPRESS_ASYNC): New flag.
1996-04-23fixupMichael I. Bushnell
1996-04-23(dequeue_quote): If this is the outputq, send SIGIO as appropriateMichael I. Bushnell
with call_asyncs. (enqueue_internal): If this is the inputq, send SIGIO as appropriate with call_asyncs. (call_asyncs): Add decl.
1996-02-24Declare ptyio_init.Miles Bader
1996-01-19(pty_io_select): Add new reply port parameter.Miles Bader
1995-12-21(nodename): Variable removed.Miles Bader
1995-12-20Never mind.Michael I. Bushnell
1995-12-20(input_path_lock): New variable.Michael I. Bushnell
1995-12-12typo.Michael I. Bushnell
1995-12-12(pty_po_create_hook, pty_po_destroy_hook): New declarations.Michael I. Bushnell
1995-12-12(pty_open_hook): New declaration.Michael I. Bushnell
1995-12-05Re-added ptyctl.Michael I. Bushnell
1995-12-05(ptyctl): Delete var.Michael I. Bushnell
(pty_cntl_class): New declaration.
1995-12-05(ptyctl): New variable.Michael I. Bushnell
1995-12-05*** empty log message ***Michael I. Bushnell
1995-12-05(pty_io_write): Add first arg; fix types of last two args.Michael I. Bushnell
1995-12-05(pty_io_read): Add first arg; fix types of last two args.Michael I. Bushnell
1995-12-05Include <hurd/trivfs.h> and <sys/types.h>.Michael I. Bushnell
1995-12-05(pty_io_write, pty_io_read, pty_io_readable, pty_io_get_openmodes,Michael I. Bushnell
pty_io_set_all_openmodes, pty_io_set_some_openmodes, pty_io_clear_some_openmodes, pty_io_mod_owner, pty_io_get_owner, pty_io_get_async_icky, pty_io_async, pty_io_select): New declarations.
1995-12-01(external_processing): New variable.Michael I. Bushnell
1995-12-01(remote_input_mode): New variable.Michael I. Bushnell
1995-12-01(ptyio_bottom, pty_class): New variables.Michael I. Bushnell
1995-12-01(struct bottomhalf): New member `notice_input_flushed'.Michael I. Bushnell
1995-12-01(struct bottomhalf): New member `suspend_physical_output'.Michael I. Bushnell
1995-12-01(CHAR_DC3): Correct value is '\023'.Michael I. Bushnell
(CHAR_DC1, CHAR_DC2): New macros.
1995-11-30(bottomhalf): Typo fix.Michael I. Bushnell
1995-11-30(start_output, set_break, clear_break, abandon_physical_output,Michael I. Bushnell
pending_output_size, assert_dtr, desert_dtr, set_bits, mdmctl, mdmstate): Deleted declarations.