/* 2. places fildes into raw mode */
/* 3. converts ioctl arguments to datastream */
/* 4. waits for 2 secs for acknowledgement before */
-/* timimg out. */
+/* timing out. */
/* 5. places response in callers buffer ( just like */
/* ioctl. */
/* 6. returns fildes to its original mode */
/* */
/***************************************************************/
+#include <sys/signal.h>
+#include <errno.h>
+
+#include <config.h>
#include <stdio.h>
#include <fcntl.h>
-#include <errno.h>
#include <setjmp.h>
#include <sys/ioctl.h>
-#include <sys/signal.h>
#include <sys/devinfo.h>
#include <termios.h>
#include <termio.h>
#include <sys/uio.h>
#include <sys/tty.h>
/* #include <sys/pty.h> */
+
#define REMOTE 0x01
#undef ioctl
/*************** LOCAL DEFINES **********************************/
-typedef int (*FUNC)(); /* pointer to a function */
-
#define QDEV ((HFQPDEVCH<<8)|HFQPDEVCL)
#define QLOC ((HFQLOCCH<<8)|HFQLOCCL)
#define QPS ((HFQPRESCH<<8)|HFQPRESCL)
extern int errno;
static jmp_buf hftenv;
static int is_ack_vtd;
-static FUNC sav_alrm;
+static SIGTYPE (*sav_alrm) ();
static struct hfctlreq req =
{ 0x1b,'[','x',0,0,0,21,HFCTLREQCH,HFCTLREQCL};
static struct hfctlack ACK =