v09i086: siotools patch 3
Warren Tucker
wht%n4hgf at gatech.edu
Fri Dec 22 12:45:40 AEST 1989
Posting-number: Volume 9, Issue 86
Submitted-by: wht%n4hgf at gatech.edu (Warren Tucker)
Archive-name: siotools/patch03
#!/bin/sh
# This is a shell archive (shar 3.04)
# made 12/21/1989 21:04 UTC by gatech!kd4nc!n4hgf!wht (wht%n4hgf at gatech.edu)
# Source directory /u4/src/uusnap/release
#
# siotools v09i044/v09i45 Patch 3
# This patch adds RTSFLOW and CTSFLOW display to detail status.
#
# Just unshar in the siotools source directory and type 'sh PATCH.3'
#
# existing files WILL be overwritten
#
# This shar contains:
# PATCH.3
#
touch 2>&1 | fgrep '[-amc]' > /tmp/s3_touch$$
if [ -s /tmp/s3_touch$$ ]
then
TOUCH=can
else
TOUCH=cannot
fi
rm -f /tmp/s3_touch$$
echo "x - extracting PATCH.3 (Text)"
sed 's/^X//' << 'SHAR_EOF' > PATCH.3 &&
X:
X#----------------------------------------------------------------------
X# siotools v09i044/v09i45 Patch 3
X# 1. siomon "Initializing" status was not refreshed until init done :-)
X# 2. Add RTSFLOW and CTSFLOW to detail status for XENIX & SCO UNIX
X#----------------------------------------------------------------------
X#+:EDITS:
X#:12-21-1989-16:02-wht-creation
X
Xsed -e 's/^P//' << DIFF_EOF | patch
XP*** siomon.c Mon Dec 4 18:28:00 1989
XP--- ../siomon.c Thu Dec 21 15:21:09 1989
XP***************
XP*** 1,5
XP /* CHK=0x4E4E */
XP! char *revision = "1.30";
XP /*+-------------------------------------------------------------------------
XP siomon.c -- watch XENIX/UNIX serial I/O
XP ...!gatech!kd4nc!n4hgf!wht
XP
XP--- 1,5 -----
XP /* CHK=0x4E4E */
XP! char *revision = "1.32";
XP /*+-------------------------------------------------------------------------
XP siomon.c -- watch XENIX/UNIX serial I/O
XP ...!gatech!kd4nc!n4hgf!wht
XP***************
XP*** 51,56
XP regarding screen and CPU efficiency in the original itpmon.c for Pyramid
XP --------------------------------------------------------------------------*/
XP /*+:EDITS:*/
XP /*:12-04-1989-16:45-wht-add more to detail */
XP /*:11-28-1989-19:49-wht-no more sprintf and allow nap/rdchk in lieu of select */
XP /*:11-22-1989-12:33-wht-rehost my Pyramid itpmon.c */
XP
XP--- 51,57 -----
XP regarding screen and CPU efficiency in the original itpmon.c for Pyramid
XP --------------------------------------------------------------------------*/
XP /*+:EDITS:*/
XP+ /*:12-21-1989-15:20-wht-version number chg - CTSFLOW/RTSFLOW */
XP /*:12-04-1989-16:45-wht-add more to detail */
XP /*:11-28-1989-19:49-wht-no more sprintf and allow nap/rdchk in lieu of select */
XP /*:11-22-1989-12:33-wht-rehost my Pyramid itpmon.c */
XP***************
XP*** 429,434
XP move(4,0);
XP standout();
XP addstr(" initializing ");
XP if(cptr = kmem_init_tty())
XP {
XP move(4,0);
XP
XP--- 430,436 -----
XP move(4,0);
XP standout();
XP addstr(" initializing ");
XP+ refresh();
XP if(cptr = kmem_init_tty())
XP {
XP move(4,0);
XP*** wintty.c Mon Dec 4 18:28:00 1989
XP--- ../wintty.c Thu Dec 21 15:20:09 1989
XP***************
XP*** 17,22
XP
XP --------------------------------------------------------------------------*/
XP /*+:EDITS:*/
XP /*:12-04-1989-15:40-wht-creation */
XP
XP #include <curses.h>
XP
XP--- 17,23 -----
XP
XP --------------------------------------------------------------------------*/
XP /*+:EDITS:*/
XP+ /*:12-21-1989-15:18-wht-display CTSFLOW and RTSFLOW if defined */
XP /*:12-04-1989-15:40-wht-creation */
XP
XP #include <curses.h>
XP***************
XP*** 80,85
XP { 3, 23, "CREAD", CFLAG, CREAD },
XP { 3, 31, "HUPCL", CFLAG, HUPCL },
XP { 3, 39, "CLOCAL", CFLAG, CLOCAL },
XP { 4, 7, "ISIG", LFLAG, ISIG },
XP { 4, 15, "ICANON", LFLAG, ICANON },
XP { 4, 23, "XCASE", LFLAG, XCASE },
XP
XP--- 81,92 -----
XP { 3, 23, "CREAD", CFLAG, CREAD },
XP { 3, 31, "HUPCL", CFLAG, HUPCL },
XP { 3, 39, "CLOCAL", CFLAG, CLOCAL },
XP+ #ifdef RTSFLOW
XP+ { 3, 46, "RTSFLO", CFLAG, RTSFLOW },
XP+ #endif
XP+ #ifdef CTSFLOW
XP+ { 3, 53, "CTSFLO", CFLAG, CTSFLOW },
XP+ #endif
XP { 4, 7, "ISIG", LFLAG, ISIG },
XP { 4, 15, "ICANON", LFLAG, ICANON },
XP { 4, 23, "XCASE", LFLAG, XCASE },
XP***************
XP*** 169,175
XP cflag_to_baud_d_p_s(cflag)
XP int cflag;
XP {
XP! register char * cptr;
XP static char rtnstr[16];
XP
XP strcpy(rtnstr,B_to_baud_rate(cflag & CBAUD));
XP
XP--- 176,182 -----
XP cflag_to_baud_d_p_s(cflag)
XP int cflag;
XP {
XP! register char *cptr;
XP static char rtnstr[16];
XP
XP strcpy(rtnstr,B_to_baud_rate(cflag & CBAUD));
XDIFF_EOF
Xecho 'Patch 3 applied.'
Xexit 0
SHAR_EOF
chmod 0755 PATCH.3 || echo "restore of PATCH.3 fails"
if [ $TOUCH = can ]
then
touch -m 1221160389 PATCH.3
fi
exit 0
More information about the Comp.sources.misc
mailing list