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
Migrating Guardian Applications to the OSS
Environment
Open System Services Porting Guide—520573-006
8-10
Using New and Extended Guardian Procedures
Using New and Extended Guardian
Procedures
New Guardian procedures and enhanced Guardian procedures are provided to support
Open System Services. These procedures can be used to manipulate OSS objects
and thereby provide a greater degree of openness for the Guardian program. Using
these Guardian procedures makes it easier to migrate the Guardian program to the
OSS environment at some point in the future, if this is desired. The Guardian
procedures fall into three major categories: security, file system, and process
management. All Guardian procedures are defined in detail in the Guardian Procedure
Calls Reference Manual. Error values for Guardian procedures are provided in the
Guardian Procedure Errors and Messages Manual.
Guardian Security Procedures
A number of Guardian procedures have been added to manage the additional security
information required for Open System Services, some of which replace older Guardian
procedures:
The GROUP_GETINFO_ procedure retrieves information about a group specified
either by group name or by group ID. A textual description of the group and information
as to whether the group is automatically deleted when the last member is deleted can
be obtained using this procedure.
The GROUPMEMBER_GETNEXT_ procedure retrieves a user name or alias
associated with a group ID. All user names and aliases associated with a group ID can
be obtained with successive calls of the procedure.
Use C compiler command
line to undefine option
Undefine preprocessor
symbol
-U symbolname
Specify an SSV pragma Change the search algorithm
for header files
-I directory
Specify a SEARCH pragma Change the search algorithm
for library files
-L directory
Procedure Description
GROUP_GETINFO_ Gets group attributes.
GROUPMEMBER_GETNEXT_ Gets user name or alias associated with group ID.
USER_AUTHENTICATE_ Verifies that user exists and optionally logs user on.
USER_GETINFO_ Obtains default attributes of specified user.
USER_GETNEXT_ Obtains next user name or alias.
Table 8-2. Common Guardian Compiler Tasks and How Similar Tasks Are
Achieved in the OSS Environment (page 2 of 2)
Guardian TNS Environment
Action Equivalent OSS Action
OSS Native c89 Flags to
Use