/* expectcomm.h - public symbols common to both expect.h and expect_tcl.h
Written by: Don Libes, libes@cme.nist.gov, NIST, 12/3/90
Design and implementation of this program was paid for by U.S. tax
dollars. Therefore it is public domain. However, the author and NIST
would appreciate credit if this program or parts of it are used.
/* common return codes for Expect functions */
/* The library actually only uses TIMEOUT and EOF */
#define EXP_ABEOF -1 /* abnormal eof in Expect */
/* when in library, this define is not used. */
/* Instead "-1" is used literally in the */
/* usual sense to check errors in system */
#define EXP_FULLBUFFER -5
#define EXP_CANTMATCH EXP_NOMATCH
#define EXP_DATA_NEW -9 /* if select says there is new data */
#define EXP_DATA_OLD -10 /* if we already read data in another cmd */
#define EXP_RECONFIGURE -12 /* changes to indirect spawn id lists */
/* require us to reconfigure things */
/* in the unlikely event that a signal handler forces us to return this */
/* through expect's read() routine, we temporarily convert it to this. */
#define EXP_TCLCNTTIMER -22
#define EXP_TCLCNTEXP -24
#define EXP_TCLRETTCL -25
/* yet more TCL return codes */
/* Tcl does not safely provide a way to define the values of these, so */
/* use ridiculously different numbers for safety */
#define EXP_CONTINUE -101 /* continue expect command */
#define EXP_CONTINUE_TIMER -102 /* continue expect command */
#define EXP_TCL_RETURN -103 /* converted by interact */
/* and interpeter from */
* Everything below here should eventually be moved into expect.h
* and Expect-thread-safe variables.
EXTERN
char *exp_pty_error
; /* place to pass a string generated */
/* deep in the innards of the pty */
/* code but needed by anyone */
EXTERN
int exp_disconnected
; /* proc. disc'd from controlling tty */
#endif /* _EXPECT_COMM_H */