summaryrefslogtreecommitdiff
path: root/term/term.h
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-02-10 17:57:49 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-02-10 17:57:49 +0000
commitaf107a198dce152da74590f2eec5a320002c0f82 (patch)
treea61f662ce5ca243502cbff9de99984bf6a8e66f1 /term/term.h
parent679bd94f4976349c7d8e95cce9c2b1577335f548 (diff)
2002-02-10 Marcus Brinkmann <marcus@gnu.org>
* 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.
Diffstat (limited to 'term/term.h')
-rw-r--r--term/term.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/term/term.h b/term/term.h
index aafc844a..694c598e 100644
--- a/term/term.h
+++ b/term/term.h
@@ -116,9 +116,6 @@ struct trivfs_control *termctl;
/* Trivfs control structure for the pty */
struct trivfs_control *ptyctl;
-/* Mach device name for this terminal */
-char *pterm_name;
-
/* The queues we use */
struct queue *inputq, *rawq, *outputq;
@@ -325,6 +322,8 @@ void rescan_inputq (void);
void write_character (int);
void init_users (void);
+extern char *tty_arg;
+
/* kludge--these are pty versions of trivfs_S_io_* functions called by
the real functions in users.c to do work for ptys. */
error_t pty_io_write (struct trivfs_protid *, char *,