Open System Services Porting Guide (G06.24+, H06.03+)

Table Of Contents
Open System Services Porting Guide520573-006
9-1
9
Porting From Specific UNIX Systems
This subsection discusses other vendors’ UNIX environments for developing or
compiling C and C++ programs that you want to port to the OSS environment. The
following topics are discussed:
The UNIX Workstation Development Environment on page 9-1
C Compilation on a Workstation on page 9-7
Resolving the Endian Problem on page 9-8
The UNIX Workstation Development
Environment
Your UNIX workstation environment should be XPG4 compliant. Your vendor should
specify whether they are compliant in their documentation. XPG4 is a superset of
POSIX.1 and POSIX.2. If a vendor’s product has gone through the XPG4 certification,
they will be branded as being XPG4 certified.
The workstation software discussed in the following subsections can affect what and
how you port applications:
Shells on page 9-1
Editors on page 9-2
Development Tools on page 9-2
Shells
One or more of three shells are available on most UNIX workstations. They are:
The Bourne shell, which was developed by Bell Labs.
The C shell, which was developed by University of California, Berkeley.
The Korn shell, which was also developed by Bell Labs. The Korn shell was
designed to be a superset of both the C shell and the Bourne shell.
The POSIX.2 standard is based upon the Korn shell. Because the OSS shell
implements the POSIX.2 standard, porting scripts from a Korn shell to the OSS shell is
relatively easy. Applications that depend upon shell scripts or shell commands should
be carefully checked to ensure that Open System Services supports all of the
commands and command flags used within the scripts.