API compatibility

Termios and termio interfaces

The termios interface is the preferred API for terminal management functions; the termios calls are translated into ioctl calls that issue the appropriate commands for the given operation. (Applications should never directly issue ioctl commands to terminal devices, but should use the termios(3C) functions instead.)

The SCO UnixWare 2.1.X termios interface has been brought forward to UnixWare 7.

Binaries produced using the SCO UnixWare 2.1.X termios interface will run on UnixWare 7 as they did on SCO UnixWare 2.1.X. Similarly, source code from SCO UnixWare 2.1.X should recompile and run without error on UnixWare 7.

Binaries produced using the SCO OpenServer compilers will get iBCS2-compatible behavior when run on UnixWare 7.

Source code from SCO OpenServer will need to be changed to use the termios structure supported on UnixWare, which omits the c_line (line discipline) element supported on SCO OpenServer and uses a different value for the number of elements in the control character (c_cc) array.

User applications compiled using the UnixWare and OpenServer Development Kit and using the UnixWare 7 termios interfaces will run as expected on SCO UnixWare 2.1.X and SCO OpenServer (with the Binary Compatibility Module installed). See termios(3C) and /usr/include/sys/termios.h.

Next topic: curses (libocurses) interface
Previous topic: Aggregate structure notes

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004