/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 1983 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#ifndef _TIP_H
#define _TIP_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* tip - terminal interface program
*/
#ifdef USG
#include <fcntl.h> /* for O_RDWR, etc. */
#include <unistd.h> /* for R_OK, etc. */
#else
#endif
#include <signal.h>
#include <stdio.h>
#include <pwd.h>
#include <ctype.h>
#include <setjmp.h>
#include <errno.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#ifdef USG
#endif
/*
* Remote host attributes
*/
/*
* String value table
*/
typedef
struct {
}
#define FALSE 0
/*
* Definition of ACU line description
*/
typedef
struct {
char *acu_name;
int (*acu_dialer)(char *, char *);
void (*acu_disconnect)(void);
void (*acu_abort)(void);
}
/*
* variable manipulation stuff --
* if we defined the value entry in value_t, then we couldn't
* initialize it in vars.c, so we cast it as needed to keep lint
* happy.
*/
typedef
union {
int zz_number;
int *zz_address;
#if defined(_LITTLE_ENDIAN)
short zz_boolean;
char zz_character;
#endif
#if defined(_BIG_ENDIAN)
int zz_boolean;
int zz_character;
#endif
}
/*
* Escape command table definitions --
* lookup in this table is performed when ``escapec'' is recognized
* at the begining of a line (as defined by the eolmarks variable).
*/
typedef
struct {
}
extern int vflag; /* verbose during reading of .tiprc file */
extern int noparity;
#ifndef ACULOG
#define logent(a, b, c, d)
#define loginit()
#else
extern void logent(char *, char *, char *, char *);
extern void loginit(void);
#endif
/*
* Definition of indices into variable table so
* value(DEFINE) turns into a static address.
*/
#define BEAUTIFY 0
extern int trusted_device;
extern char *connect(void);
extern char *ctrl(char);
extern char *getremote(char *);
extern char *expand(char []);
extern char *vinterp(char *, char);
extern void cumain(int, char *[]);
extern void delock(char *);
extern void disconnect(char *);
extern void myperm(void);
extern void parwrite(int, unsigned char *, int);
extern void raw(void);
extern void setparity(char *);
extern void setscript(void);
extern void tandem(char *);
extern void tip_abort(char *);
extern void ttysetup(int);
extern void unraw(void);
extern void userperm(void);
extern void vinit(void);
extern void vlex(char *);
extern int any(char, char *);
extern int hunt(char *);
extern int rgetent(char *, char *, int);
extern int rgetflag(char *);
extern int rgetnum(char *);
extern int speed(int);
extern int tip_mlock(char *);
extern int vstring(char *, char *);
#endif /* _TIP_H */