I have an archaic modem interface library, which was originally made for Solaris and Linux, and I am trying to see if it will work for Linux.
While compiling on Linux, I saw :
#if ! defined(WIN32)
#include <string.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <termios.h>
#include <sys/termiox.h>
It doesn’t seem to be able to find where termiox.h and when I google for it, it only shows up results for termios.h
I can’t simply take away the reference, because there are a number of calls made to it.
Would anyone happen to know where the termiox calls are defined under Linux?
The OS version is RHEL 5.5
The code which references the termiox libraries are just saying it to ignore termiox options:
/home/local/NT/jayanthv/8.7/CallBur/lib/unix.c(556): error: struct "<unnamed>" has no field "termiox"
if( modem_opt_ignore_termiox == No && ioctl( modem_handle, TCSETX, &mattr_current.termiox ) < 0 )
Should I just go ahead and add #if !defined() around the code?
No kidding about archaic. At the bottom of the man page linked by rodion it says:
That man page is dated 1990. Since then, termio has also become obsolete:
So termiox was replaced by termio, which was replaced by termios.