Open System Services Porting Guide (G06.24+, H06.03+)

Table Of Contents
Migrating Guardian Applications to the OSS
Environment
Open System Services Porting Guide520573-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