|
This example takes you through the porting process using the binaryScan
utility, and the STK file scanning technology, to identify porting
problems and help you solve them for a code porting example from HP-UX
v11i to HP-UX 11i v2.
In this example, we run binaryScan on the executable code:
/opt/binaryscan/binaryscan gethost-example-PA
This summary report shows the number of instances of API differences in the
source code. In this example, the report has identified four APIs, one
of which has the disposition critical change.
» View the binaryScan summary output.
In this example, we run the scandetail report on all the source code in the current directory:
/opt/STK/bin/scandetail -r .
The scandetail report shows all of the impact statements generated for the files scanned.
» View the scandetail report.
From the scandetail report generated in step 2, we select
the problem synopsis NcWn918.
The impact statement NcWn918
shows a list of the libc APIs that have been deprecated and that may become obsolete in a future release of Itanium®-based systems.
From the scandetail report generated in step 2, we commented
the references to getipbynodename and used the getaddinfo and getnameinfo
routines.
Use an editor to make these changes in the gethost-example.c file.
In this example, we run the scandetail report again after we made modifications to the gethost-example.c file, which is located in the current directory:
/opt/STK/bin/scandetail -r .
The scandetail report shows that the number of files and lines scanned remained the same but that the impact statement NcWn918 is no longer displayed.
» View the revised scandetail report.
» Return to tutorial home
|