🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41557

LCRTKIL, LCRTERA - missing DEFINEs (2nd attempt)

#41557
From: Daragh McDonnell
Date: Thu, 07 Mar 1996 00:00
76 lines
2802 bytes
(Sorry about my previous, empty posting)

I am trying to compile the SKEY user authentication software for use
with the
TIS firewall toolkit, using GCC 2.70 and Linux kernel 1.3.60.

The SKEY source is based on BSD.  Make gives an the following error when
compiling skeysubr.c :

In function 'readpass':
'LCRTERA' undeclared (first use this function)
'LCRTKIL' undeclared (first use this function)

The routine which produces these errors is included below.

I've searched the header files in /usr/include for these DEFINEs, but
they
don't seem to be there. Can these be replaced by some equivalents, or is
there an include file I need to get?

Daragh.

---------------------------------------------------------------------------
Daragh McDonnell,                                     D.S.P. Research
Group,
Phone:  (+353 1) 706 1914                    Room 244, Engineering
Building,
Fax:    (+353 1) 283 0921                         University College
Dublin,
E-Mail: daragh@tesla.ucd.ie
Ireland.
---------------------------------------------------------------------------

char *
readpass(buf,n)
char *buf;
int n;
{
	int fflags,lword,lwordsav;
	struct sgttyb ttyf,ttysave;

	/* Set normal line editing */
	fflags = fcntl(fileno(stdin),F_GETFL,0);
	fcntl(fileno(stdin),F_SETFL,fflags & ~FNDELAY);
	ioctl(fileno(stdin),TIOCLGET,&lword);
	ioctl(fileno(stdin),TIOCLGET,&lwordsav);
	lword |= LCRTERA|LCRTKIL;
	ioctl(fileno(stdin),TIOCLSET,&lword);

	/* Turn off echoing */
	ioctl(fileno(stdin), TIOCGETP, &ttyf);
	ioctl(fileno(stdin), TIOCGETP, &ttysave);
	ttyf.sg_flags &= ~(ECHO|RAW|CBREAK);
	ttyf.sg_flags |= CRMOD;
	ioctl(fileno(stdin),TIOCSETP,&ttyf);
	fgets(buf,n,stdin);
	rip(buf);

	/* Restore previous tty modes */
	fcntl(fileno(stdin),F_SETFL,fflags);
	ioctl(fileno(stdin),TIOCSETP,&ttysave);
	ioctl(fileno(stdin),TIOCLSET,&lwordsav);

	/*
	after the secret key is taken from the keyboard, the line feed is
	written to standard error instead of standard output.  That means that
	anyone using the program from a terminal won't notice, but capturing
	standard output will get the key words without a newline in front of
	them. 
	*/
        fprintf(stderr, "\n");
        fflush(stderr);
	sevenbit(buf);

	return buf;
}
Technical Details
Message-ID: <313EED87.7C0@tesla.ucd.ie>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,5299008d371a6979,start
X-Google-Attributes: gid11318c,public
From: Daragh McDonnell <daragh@tesla.ucd.ie>
Subject: LCRTKIL, LCRTERA - missing DEFINEs (2nd attempt)
Date: 1996/03/07
Message-ID: <313EED87.7C0@tesla.ucd.ie>
X-Deja-AN: 142104021
content-type: text/plain; charset=us-ascii
organization: University College Dublin
mime-version: 1.0
newsgroups: gnu.gcc.help
x-mailer: Mozilla 2.0 (X11; I; HP-UX A.09.01 9000/720)