원래 Solaris 및 Linux 용으로 만들어진 고풍 모뎀 인터페이스 라이브러리가 있으며 Linux 용으로 작동하는지 확인하려고합니다. 수있을 것 같지 않습니다termiox.h에 해당하는 Linux는 무엇입니까?
#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>
는 어디서 찾을 수 있는지 termiox.h 나는 그것을 위해 구글 때, 그것은 단지 termios.h
에 대한 결과를 보여줍니다 리눅스에서 컴파일하는 동안 , 나는 보았다많은 참조가 있었기 때문에 단순히 참조를 제거 할 수 없습니다.
누구든지 Linux에서 termiox 호출이 정의 된 곳을 알고 있습니까?
OS 버전은 RHEL 5.5
termiox 라이브러리를 그냥 termiox 옵션 무시하는 말을 참조하는 코드입니다!
/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)
난 그냥 가서 # 만약을 추가해야 정의() 코드 주위에?
이것은 AIX에서 나온 것 같습니다. - 필요한 calls/struct는 termiox.h에 정의되어 있습니다. 즉, 포함하지 않고 컴파일 할 때 어떤 오류가 발생합니까? 편집 : SunOS 서버에는 termiox가있는 것으로 보입니다. – rodion
정보로 질문을 업데이트했습니다. termiox를 호출하는 코드를 무시하는 것이 현명 할 것이라고 생각하십니까? – roymustang86
말하기 어렵다 - 나는 개인적으로 그냥 시도하고 시도 할 것이다 :) 게시 한 ioctl 호출은 기본적으로 modem_handle에 대한 흐름 제어 설정을 mattr_current.termiox의 설정으로 설정합니다. mattr_current.termiox는 어떻게 초기화됩니까? – rodion