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
xv
Related Reading
appendix can help you decide whether you can rewrite shell scripts as TACL
macros or command files.
•
Appendix C, Equivalent Inspect Debugging Commands for dbx Commands,
provides a mapping of dbx commands to Inspect commands for users familiar with
the dbx tool. This appendix can help you decide whether you can rewrite shell
scripts a command files for program maintenance.
•
Appendix D, Equivalent Native Inspect Debugging Commands for dbx Commands,
provides a mapping of dbx commands to Native Inspect debugger commands for
users familiar with the dbx tool. This appendix can help you decide whether you
can rewrite shell scripts as command files for program maintenance.
•
Appendix E, Standard POSIX Threads Functions: Differences Between the
Previous and Current Standards, lists the thread functions in groups according to
differences between the IEEE 1003.1c standard, 1995, and the previous standard,
Draft 4 of the IEEE standard.
•
The Glossary lists and defines OSS terms and abbreviations.
Related Reading
Use the following standard documents when porting code to the OSS environment:
•
ISO/IEC 9899-1 C Programming Language Standard
•
ISO/IEC 9945-1 POSIX.1 Standard
•
ISO/IEC 9945-2 POSIX.2 Standard
Use the following specifications documents when porting code to the OSS
environment:
•
XPG4 System Interfaces and Headers, Issue 4, Version 2
•
XPG4 Commands and Utilities, Issue 4, Version 2
•
XPG4 Networking Services, Issue 4
•
XPG4 System Interface Definitions, Issue 4, Version 2
Many commercially available texts describe how to write portable applications in C.
The following list includes books for porting and reference books for writing C and C++
programs for UNIX environments:
•
Arnold, Ken and John Peyton. A C User's Guide to ANSI C. Reading, MA: Addison
& Wesley, 1992.
•
Ellis, Margaret A. and Bjarne Stroustrup. The Annotated C++ Reference Manual.
Reading, MA: Addison & Wesley, 1990.
•
Harbinson, Samuel P. and Guy L. Steel. C, A Reference Manual. Englewood Cliffs,
NJ: Prentice Hall, 1991.
•
Horton, Mark. Portable C Software. Englewood Cliffs, NJ: Prentice Hall, 1990.
•
Jaeschke, Rex. Portability and the C Language. CBM Books, 1989.