[comp.sources.d] kermit 4E

ron@ccd700.UUCP (ron) (11/25/87)

# This is a diff listing of changes made to 4e(066) kermit
# download from okstate to a fortune at Ford Motor Company.
# Note the addition of code in ckutio.c to attempt to locate
# the comm port in /dev rather than having to explicitly
# define the device.  I added this so out poor users do not
# have to remember as much about their systems.

# SINCE I DO NOT HAVE CORRECT ACCESS TO GET THIS TO THE PROPER
# PEOPLE AT COLUMBIA,  COULD SOME NICE PERSON PLEASE FORWARD
# THIS INFORMATION TO Info-Kermit@CU20B.COLUMBIA.EDU ???
# THANK YOU FOR YOUR HELP!

# ron tribble
# ...mibte!ccd700!ron
# (313) 624-5175 home
# (313) 390-1325 work

cat myword
echo XXX makefile XXX
diff ckuker.mak makefile
echo XXX ckufio XXX
diff ckufio.old ckufio.c
echo XXX ckutio XXX
diff ckutio.old ckutio.c
XXX makefile XXX
291c291
< 	make wermit "CFLAGS= -DTLOG -DBSD4 -DFT18"
---
> 	make wermit "CFLAGS= -O -DTLOG -DBSD4 -DFT18"
XXX ckufio XXX
113c113
< char #SPACMD = "pwd ; du ; df .";
---
> char *SPACMD = "pwd ; du ; df .";
XXX ckutio XXX
222c222
< #include <sys/file.h>	  		/* File information */
---
> /*#include <sys/file.h>	done by PROVX1	/* File information */
508,510c508,519
<     if (ttyfd < 0) {			/* If couldn't open, fail. */
< 	perror(ttname);
< 	return(-1);
---
>     if (ttyfd < 0) {			/* If couldn't open, try /dev */
> 	strcpy ( cname , "/dev/" );
> 	strcat ( cname , ttname );
> #ifdef UXIII
>     	ttyfd = open(cname,O_RDWR | (modem ? O_NDELAY : 0) );
> #else
>     	ttyfd = open(cname,2);		/* Try to open for read/write */
> #endif /* uxiii */
> 	    if (ttyfd < 0) {		/* If couldn't open, fail. */
> 		perror(ttname);
> 		return(-1);
> 	    }
760a770
> #ifndef FT18
761a772
> #endif
1049a1061,1063
> 	    case 19200: s = EXTA; break;
> #endif
> #ifdef FT18

for what it's worth
ron tribble
...mibte!ccd700!ron
(313) 624-5175 home
(313) 390-1325 work