From b3c44428e466e27ed1e9db53e1307d03f6e74c46 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sun, 13 Nov 1994 23:47:37 +0000 Subject: [PATCH] Expand channel_type table to include OS/2 channel types. Rename unix-specific channel types (defining old names as aliases). --- v7/src/microcode/osio.h | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/v7/src/microcode/osio.h b/v7/src/microcode/osio.h index 21da23922..86ef6fa55 100644 --- a/v7/src/microcode/osio.h +++ b/v7/src/microcode/osio.h @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: osio.h,v 1.8 1993/04/06 22:18:26 cph Exp $ +$Id: osio.h,v 1.9 1994/11/13 23:47:37 cph Exp $ Copyright (c) 1990-93 Massachusetts Institute of Technology @@ -37,22 +37,33 @@ MIT in each case. */ #include "os.h" +/* Must match definition of `channel_type_names' in "prosio.c". */ enum channel_type { channel_type_unknown, channel_type_file, - channel_type_pipe, - channel_type_fifo, + channel_type_unix_pipe, + channel_type_unix_fifo, channel_type_terminal, - channel_type_pty_master, + channel_type_unix_pty_master, channel_type_unix_stream_socket, channel_type_tcp_stream_socket, channel_type_tcp_server_socket, channel_type_directory, - channel_type_character_device, - channel_type_block_device + channel_type_unix_character_device, + channel_type_unix_block_device, + channel_type_os2_console, + channel_type_os2_unnamed_pipe, + channel_type_os2_named_pipe }; +/* For upwards compatibility: */ +#define channel_type_pipe channel_type_unix_pipe +#define channel_type_fifo channel_type_unix_fifo +#define channel_type_pty_master channel_type_unix_pty_master +#define channel_type_character_device channel_type_unix_character_device +#define channel_type_block_device channel_type_unix_block_device + extern size_t OS_channel_table_size; #define NO_CHANNEL OS_channel_table_size extern int EXFUN (OS_channel_open_p, (Tchannel channel)); -- 2.25.1