[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

kermit



Debian developers,

   The C-kermit 189 binary provided with Debian is not quite perfect.
These points are slightly picky, but I have to be picky to find any fault
with Debian :-).

  1) The lock files, while in the correct place, are not of the correct
     format.  The pid is stored in binary format, while the fsstnd 1.0
     requires that the lock file format be "HDB style ... locking process ID 
     in ASCII, padded with leading zeroes to ten characters, followed by a 
     newline."  A small patch to ckutio.c was required to force the leading
     zeroes.  Does anyone sure that HDB UUCP *requires* the leading 0's?

  2) CTS/RTS hardware flow-control is not enabled in kermit.

The affixed patch corrects these problems.  QMAGIC format binary available 
by request.


*** makefile.old	Mon Feb 28 03:58:05 1994
--- makefile	Mon Feb 28 04:05:02 1994
***************
*** 470,476 ****
  #  See MINIX entry for what to do if another filetype must be used.
  #
  EXT=o
! #LNKFLAGS=
  SHAREDLIB=
  CC= cc
  CC2= cc
--- 470,476 ----
  #  See MINIX entry for what to do if another filetype must be used.
  #
  EXT=o
! LNKFLAGS=-s -Wl,-qmagic
  SHAREDLIB=
  CC= cc
  CC2= cc
***************
*** 485,493 ****
  
  WERMIT = makewhat
  DESTDIR =
! BINDIR = /usr/local/bin
! MANDIR = /usr/man/manl
! MANEXT = l
  ALL = $(WERMIT)
  
  all: $(ALL)
--- 485,493 ----
  
  WERMIT = makewhat
  DESTDIR =
! BINDIR = /usr/bin
! MANDIR = /usr/man/man1
! MANEXT = 1
  ALL = $(WERMIT)
  
  all: $(ALL)
***************
*** 2006,2019 ****
  # Linux with the GCC 2.1 compiler.
  linuxgcc2:
  	@echo 'Making C-Kermit Linux with gcc2.1'
! 	$(MAKE) wermit "CC = gcc" "CFLAGS = -O -DPOSIX -DDIRENT -DDYNAMIC  \
! 	-DUSLEEP $(KFLAGS)" "CC2 = gcc" "LDFLAGS = -ltermcap "
  
  # Linux with the GCC 2.1 compiler with TCP/IP and fullscreen display
  linuxgcc2net:
! 	@echo 'Making C-Kermit Linux with gcc2.1 and TCP/IP'
! 	$(MAKE) wermit "CC = gcc" "CFLAGS = -O -DPOSIX -DDIRENT -DDYNAMIC  \
! 	-DUSLEEP -DTCPSOCKET -DCK_CURSES $(KFLAGS)" "CC2 = gcc" \
  	"LIBS = -ltermcap -lcurses"
  
  #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
--- 2006,2021 ----
  # Linux with the GCC 2.1 compiler.
  linuxgcc2:
  	@echo 'Making C-Kermit Linux with gcc2.1'
! 	$(MAKE) wermit "CC = gcc" "CFLAGS = -O2 -m486 -DPOSIX -DCK_RTSCTS \
! 	-DDIRENT -DDYNAMIC -DUSLEEP -DPIDSTRING -DLOCK_DIR=\\\"/var/lock\\\" \
! 	$(KFLAGS)" "CC2 = gcc" "LIBS = -ltermcap "
  
  # Linux with the GCC 2.1 compiler with TCP/IP and fullscreen display
  linuxgcc2net:
! 	@echo 'Making C-Kermit Linux with gcc2.5.7 and TCP/IP'
! 	$(MAKE) wermit "CC = gcc" "CFLAGS = -O2 -m486 -DPOSIX -DCK_RTSCTS \
! 	-DDIRENT -DDYNAMIC -DUSLEEP -DTCPSOCKET -DCK_CURSES -DPIDSTRING \
! 	-DLOCK_DIR=\\\"/var/lock\\\" $(KFLAGS)" "CC2 = gcc" \
  	"LIBS = -ltermcap -lcurses"
  
  #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
*** ckutio.c.old	Mon Feb 28 03:58:05 1994
--- ckutio.c	Mon Feb 28 03:58:20 1994
***************
*** 2499,2505 ****
      sprintf(pid_str,"%d\n", (int) pid); /* Write pid as decimal string. */
      write(lockfd, pid_str, strlen (pid_str));
  #else
!     sprintf(pid_str,"%10d\n", (int) pid); /* Write pid as decimal string. */
      write(lockfd, pid_str, 11);
  #endif /* COHERENT */
      debug(F111,"ttlock hdb pid string",pid_str,(int) pid);
--- 2499,2505 ----
      sprintf(pid_str,"%d\n", (int) pid); /* Write pid as decimal string. */
      write(lockfd, pid_str, strlen (pid_str));
  #else
!     sprintf(pid_str,"%010d\n", (int) pid); /* Write pid as decimal string. */
      write(lockfd, pid_str, 11);
  #endif /* COHERENT */
      debug(F111,"ttlock hdb pid string",pid_str,(int) pid);


Reply to: