Open System Services Porting Guide (G06.29+, H06.06+, J06.03+)
Contents
About This Manual......................................................................................13
Supported Release Version Updates (RVUs)................................................................................13
Intended Audience..................................................................................................................13
Disclaimer.............................................................................................................................13
New and Changed Information................................................................................................14
Changes Made to the 520573-016 Edition............................................................................14
Changes Made to the 520573-015 Edition............................................................................14
Changes Made to the 520573-014 Edition............................................................................15
Changes Made to the 520573-013 Edition............................................................................15
Changes Made to the 520573-012 Edition............................................................................15
Organization of This Guide......................................................................................................15
Notation Conventions..............................................................................................................17
General Syntax Notation....................................................................................................17
Related Information.................................................................................................................18
Publishing History...................................................................................................................21
HP Encourages Your Comments................................................................................................22
1 Introduction to Porting...............................................................................23
Overview of Porting................................................................................................................23
Porting Requires Good Coding Practices...............................................................................23
You Should Use Portable Application Templates.....................................................................23
Porting Is Easier When Standards Are Used...........................................................................24
POSIX Standards and OSS Conformance..............................................................................24
POSIX.1 Standard..........................................................................................................24
POSIX.1 Conformance....................................................................................................25
POSIX.2 Standard.........................................................................................................25
POSIX.2 Conformance...................................................................................................25
XPG4 Specifications and OSS Compliance...........................................................................25
Extensions Based on Standards or Proposed Standards...........................................................25
OSS Compliance With UNIX 98 and Other Open Group Technical Standards..........................26
ISO/ANSI C Standard and the HP NonStop C Compiler........................................................26
ISO/ANSI C Features....................................................................................................26
Reserved Words............................................................................................................27
Constants.....................................................................................................................27
ISO/ANSI C Header Files..............................................................................................27
Overview of the OSS Environment.............................................................................................28
Comparison With UNIX......................................................................................................28
Relationship of the OSS Environment to the Guardian Environment...........................................29
Comparing Commands Between Environments.......................................................................30
2 The Development Environment....................................................................31
TNS/R Native, TNS/E Native, and TNS Environments.................................................................31
TNS/R Development Tools on TNS/E Systems........................................................................32
System Compatibility .........................................................................................................32
File Compatibility ..............................................................................................................32
Compilation Options for C and C++ Programs...........................................................................33
Moving or Accessing Source Files.............................................................................................35
Using Network and File Management Utilities.......................................................................35
Moving Source Code.........................................................................................................35
The ftp Utility................................................................................................................35
Moving Code to the OSS Environment.............................................................................35
Transferring Files Back to the Workstation.........................................................................36
Contents 3