NIO CommKit Host Interface Installation and System Administration Manual
6-9
Porting CommKit Applications To Release 4.x
Programmer-Level Compatibility
Library Interface Compatibility
Most of the old library routines have been replaced or dropped from this
release of the CommKit software. The new library routines support the
actions of the old library routines as well as additional actions, so that you
do not need to use the ioctl interface to the CommKit software drivers.
Obsolete Library Routines
The CommKit software no longer supports the routines listed in Table 6-5.
sysexits.h The sysexits.h file contains exit codes used by the CommKit
software user-level commands.
Table 6-3 Obsolete CommKit Software Library Routines
Function Description
dkminor
This function converted a file descriptor into a data switch
channel number, and has been replaced by the dk_info
function that returns both the interface and channel number.
Refer to the dk_info example later in this chapter.
In HP-UX 9.x applications, dkminor was often used with
dtnamer to switch an outgoing call from the raw interface to
the TTY interface. If you convert HP-UX 9.x code to the
HP-UX 10.x equivalents, your code will not place an
outgoing call over the TTY interface. In HP-UX 10.x, a
process obtains a TTY interface directly by using the new
dkitdial library function. Refer to the dkitdial example later
in this chapter.
dknamer
This function converted an NIO CommKit Host Interface
minor number into the /dev name for the raw interface.
dknamer has been replaced by dk_namer, which accepts
both the CommKit number and the data switch channel
number as arguments. Refer to the dk_namer example later
in this chapter.
Table 6-2 CommKit Software Header Files
Header File Description