Open System Services Porting Guide (G06.24+, H06.03+)
Table Of Contents
- What’s New in This Manual
- About This Manual
- 1 Introduction to Porting
- 2 The Development Environment
- 3 Useful Porting Tools
- 4 Interoperating Between User Environments
- Purpose of Interoperability
- The OSS User Environment
- OSS Commands for the Guardian User
- Guardian Commands for the UNIX User
- OSS Pathname and Guardian Filename Conversions
- Running the OSS Shell and Commands From TACL
- Running Guardian Commands From the OSS Shell
- Running OSS Processes With Guardian Attributes
- Using OSS Commands to Manage Guardian Objects
- 5 Interoperating Between Programming Environments
- 6 OSS Porting Considerations
- 7 Porting UNIX Applications to the OSS Environment
- 8 Migrating Guardian Applications to the OSS Environment
- General Migration Guidelines
- C Compiler Issues for Guardian Programs
- Using New and Extended Guardian Procedures
- Using OSS Functions in a Guardian Program
- Interoperating With OSS Programs
- Starting an OSS Program From the Guardian Environment
- C Compiler Considerations for OSS Programs
- Porting a Guardian Program to the OSS Environment
- How Arguments Are Passed to the C or C++ Program
- Differences in the Two Run-Time Environments
- Which Run-Time Routines Are Available
- Use of Common Run-Time Environment (CRE) Functions
- Replacing Guardian Procedure Calls With Equivalent OSS Functions
- Which IPC Mechanisms Can Be Used
- Interactions Between Guardian and OSS Functions
- 9 Porting From Specific UNIX Systems
- 10 Native Migration Overview
- 11 Porting or Migrating Sockets Applications
- 12 Porting Threaded Applications
- A Equivalent OSS and UNIX Commands for Guardian Users
- B Equivalent Guardian Commands for OSS and UNIX Users
- C Equivalent Inspect Debugging Commands for dbx Commands
- D Equivalent Native Inspect Debugging Commands for dbx Commands
- E Standard POSIX Threads Functions: Differences Between the Previous and Current Standards
- Glossary
- Index
Contents
Open System Services Porting Guide—520573-006
ix
A. Equivalent OSS and UNIX Commands for
Guardian Users
A. Equivalent OSS and UNIX Commands for Guardian Users
B. Equivalent Guardian Commands for OSS and UNIX Users
C. Equivalent Inspect Debugging Commands for dbx
Commands
D. Equivalent Native Inspect Debugging Commands for dbx
Commands
E. Standard POSIX Threads Functions: Differences Between the
Previous and Current Standards
Reference Pages for Thread Functions E-1
Changed Thread Functions E-2
Glossary
Index
Examples
Example 8-1. runossp.c Sample Code 8-23
Figures
Figure i. HP Manuals Related to the Open System Services Porting Guide xx
Figure 1-1. Relationship of OSS to NonStop Operating System and Guardian
Environment 1-9
Figure 4-1. OSS and Guardian Interoperability 4-3
Figure 5-1. Mixed-Module Programming Using the c89 Utility 5-14
Tables
Table 1-1. ISO/ANSI C Features Not Supported in Common C 1-5
Table 2-1. Cross-Compilation Options for Generating OSS and Guardian
Executable Files 2-5
Table 5-1. Differences Between Guardian and OSS Environments 5-3
Table 5-2. Process Creation Comparison 5-6
Table 6-1. UNIX Features and the OSS Environment 6-1
Table 6-2. Interprocess Communication Using OSS APIs 6-4
Table 6-3. Interprocess Communication using OSS and Guardian APIs 6-4
Table 7-1. Functions Currently Not in the OSS Environment 7-6
Table 7-2. Process Attributes for fork() and exec Set of Functions 7-24
Table 8-1. Memory Models Supported by the TNS Guardian System 8-6