DCE Application Programming Guide

Porting Applications
HP NonStop DCE Application Programming Guide429551-003
5-2
Required Change
Required Change
Only one source change was required to port this application—changing the name of
an include file to use the standard POSIX name:
infpls_s.c
The errno.h file is now included instead of the sys/errno.h file when the program
is compiled on a POSIX-compliant system. This change is marked (a) in the listing of
Figure A-4 on page A-5.
Improvements
These minor improvements were also made to the application:
These files were changed to eliminate C compiler warnings and to improve
application error reporting:
°
infpls_c.c
Changes were made to report errors importing bindings and errors returned by
the get_system_info() remote procedure call. These changes are marked
(a), (b), (c), and (d) in the listing of Figure A-5 on page A-7.
°
infpls_i.c
The file stdlib.h was included to eliminate a C compiler warning. This
change is marked (a) in the listing of Figure A-6 on page A-9.
°
infpls_s.c
An error message is now printed if the server is not able to listen. This
change is marked (b) in the listing of Figure A-4 on page A-5.
A type cast was used to eliminate a C compiler warning. This change is
marked (c) in the listing on page A-6.
This file was created:
infplsmk.tns
This make file is for use on NonStop systems and is shown in Figure A-7
on
page A-12. It is a modified version of infplsmk.ibm. The only difference is the
name of the C compiler.
Conversion to the DCE 1.1 Server Initialization
API
This subsection describes a conversion of the Information Please server to use the
DCE release 1.1 server initialization API and the serviceability API.
The Information Please server can run effectively using the DCE release 1.0.3 server
initialization routines. This conversion to the release 1.1 server initialization API is