Open System Services Porting Guide (G06.29+, H06.06+, J06.03+)

Table 11 Common Guardian Compiler Tasks and How Similar Tasks Are Achieved in the OSS
Environment (continued)
OSS c99 Flags to UseOSS Native c89 Flags to UseEquivalent OSS ActionGuardian TNS Environment
Action
Not supported-Wsqlcomp=argsInvoke the SQL/MP
compiler by running the
Run the SQL/MP compiler
c89 utility with the
-Wsqlcomp flag
-Wmxcmp=args-Wmxcmp=argsInvoke the SQL/MX
compiler by running the
Run the SQL/MX compiler
c89 utility with the
-Wmxcmp flag
-Wsystype=guardian-Wsystype=guardianSpecify that the module
is to be compiled as a
Guardian module
Compile Guardian module
by default
-WBstatic-WBstaticSelect static linking
(default is dynamic)
Select static binding
(default)
-o outfile-o outfileSpecify output file by
name
Produce specified
executable file
-D symbolname[=value]-D symbolname[=value]Define preprocessor
symbol
Use C compiler command
line to define option
-U symbolname-U symbolnameUndefine preprocessor
symbol
Use C compiler command
line to undefine option
-I directory-I directoryChange the search
algorithm for header
files
Specify an SSV pragma
-L directory-L directoryChange the search
algorithm for library
files
Specify a SEARCH pragma
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:
DescriptionProcedure
Gets group attributes.GROUP_GETINFO_
Gets user name or alias associated with group ID.GROUPMEMBER_GETNEXT_
Verifies that user exists and optionally logs user on.USER_AUTHENTICATE_
Obtains default attributes of specified user.USER_GETINFO_
Obtains next user name or alias.USER_GETNEXT_
Using New and Extended Guardian Procedures 143