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
Hewlett-Packard Company—520573-006
i
Open System Services Porting
Guide
Glossary Index Examples Figures Tables
What’s New in This Manual xi
Manual Information xi
New and Changed Information xi
About This Manual xiii
Audience xiii
Disclaimer xiii
Organization of This Guide xiii
Related Reading xv
Notation Conventions xxi
1. Introduction to Porting
Overview of Porting 1-1
Porting Requires Good Coding Practices 1-1
You Should Use Portable Application Templates 1-1
Porting Is Easier When Standards Are Used 1-2
Overview of the OSS Environment 1-7
Comparison With UNIX 1-8
Relationship of the OSS Environment to the Guardian Environment 1-8
Comparing Commands Between Environments
1-10
2. The Development Environment
TNS/R Native, TNS/E Native, and TNS Environments 2-1
TNS/R Development Tools on TNS/E Systems 2-2
System Compatibility 2-2
File Compatibility 2-3
Compilation Options for C and C++ Programs 2-3
Moving or Accessing Source Files 2-6
Using Network and File Management Utilities 2-6
Moving Source Code 2-6
Using Archiving Utilities 2-8
Working on the NonStop System 2-10
C and C++ Compilation Using the c89 Utility 2-10