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
About This Manual
Open System Services Porting Guide—520573-006
xiv
Organization of This Guide
•
Section 3, Useful Porting Tools, provides an overview of some useful porting tools
to promote planning the porting task, which enhances the efficiency of porting
code.
•
Section 4, Interoperating Between User Environments, introduces interoperability
between the Guardian and OSS environments. Topics include running the OSS
shell and commands from the TACL command interpreter, running TACL
commands from the OSS shell, and running OSS processes with Guardian
attributes.
•
Section 5, Interoperating Between Programming Environments, discusses
interoperability between the Guardian and OSS programming environments.
Interoperability is discussed with regard to header files, objects (files and
processes), and mixed-module programming.
•
Section 6, OSS Porting Considerations, discusses how to achieve equivalent
behavior when porting applications to the OSS environment or writing new
programs for the OSS environment. Topics include using equivalent features in the
OSS environment, making design trade-offs, and making changes because of
performance considerations.
•
Section 7, Porting UNIX Applications to the OSS Environment, discusses
considerations when porting applications from a UNIX environment to the OSS
environment, such as scope and levels of portability and C or C++ programming
considerations: function prototypes, header files, and the OSS C run-time library.
•
Section 8, Migrating Guardian Applications to the OSS Environment, discusses
considerations when migrating applications from the Guardian environment to the
OSS environment. Topics include migration guidelines, compiler issues, and the
interoperating of Guardian and OSS programs.
•
Section 9, Porting From Specific UNIX Systems, describes actions you should take
before porting an application program from a UNIX platform with specific
characteristics.
•
Section 10, Native Migration Overview, includes concerns for users migrating from
a TNS environment to a TNS/R or TNS/E native environment.
•
Section 11, Porting or Migrating Sockets Applications, describes considerations
when porting a sockets application to use the OSS API from a UNIX system or
from the Guardian API.
•
Section 12, Porting Threaded Applications, lists the major issues to address in
order to port existing threaded applications to Standard POSIX Threads.
•
Appendix A, Equivalent OSS and UNIX Commands for Guardian Users, provides a
table that compares Guardian commands to OSS and UNIX commands. This
appendix can help you decide whether to rewrite TACL macros or command files
as OSS shell scripts.
•
Appendix B, Equivalent Guardian Commands for OSS and UNIX Users, provides a
table that compares OSS and UNIX commands to Guardian commands. This