| 
 |  | 
The following library functions (defined on the termios(S) manual page) should be used instead of ioctl(S):
   #define	NCCS	21
   struct termios {
       tcflag_t      c_iflag;     / input modes
 input modes  /
       tcflag_t      c_oflag;     /
/
       tcflag_t      c_oflag;     / output modes
 output modes  /
       tcflag_t      c_cflag;     /
/
       tcflag_t      c_cflag;     / control modes
 control modes  /
       tcflag_t      c_lflag;     /
/
       tcflag_t      c_lflag;     / local (line discipline) modes
 local (line discipline) modes  /
       char          c_line;      /
/
       char          c_line;      / line discipline
 line discipline  /
       cc_t          c_cc[NCCS];  /
/
       cc_t          c_cc[NCCS];  / control chars
 control chars  /
   };
/
   };
For backward compatibility when the -a ods30 option is used with
cc(CP),
the following alternative version of the termios structure is
also defined:
   #define	NCCS	13
   struct termios {
       tcflag_t      c_iflag;     / input modes
 input modes  /
       tcflag_t      c_oflag;     /
/
       tcflag_t      c_oflag;     / output modes
 output modes  /
       tcflag_t      c_cflag;     /
/
       tcflag_t      c_cflag;     / control modes
 control modes  /
       tcflag_t      c_lflag;     /
/
       tcflag_t      c_lflag;     / local (line discipline) modes
 local (line discipline) modes  /
       char          c_line;      /
/
       char          c_line;      / line discipline
 line discipline  /
       cc_t          c_cc[NCCS];  /
/
       cc_t          c_cc[NCCS];  / control chars
 control chars  /
       char          __c_xxx;     /
/
       char          __c_xxx;     / used for input baud rate for iBCS2
 used for input baud rate for iBCS2  /
       char          __c_yyy;     /
/
       char          __c_yyy;     / used for output baud rate for iBCS2
 used for output baud rate for iBCS2  /
   };
/
   };
ISO/IEC 9945 1:1990, Information technology
1:1990, Information technology  Portable Operating System Interface (POSIX)
 Portable Operating System Interface (POSIX)  Part 1: System Application Program Interface (API) [C Language] (IEEE Std 1003.1
 Part 1: System Application Program Interface (API) [C Language] (IEEE Std 1003.1 1990);
1990);
X/Open CAE Specification, System Interfaces and Headers, Issue 4, 1992.