Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (T-V)
Guardian Procedure Calls Reference Manual522629-013
15-50
USERDEFAULTS Procedure
(Superseded by USER_GETINFO_ Procedure )
USERDEFAULTS Procedure
(Superseded by USER_GETINFO_ Procedure
)
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Condition Code Settings
Considerations
Example
Summary
USERDEFAULTS returns the default attributes of the specified user, such as the user’s
default volume/subvolume and default file security. This same information is also
available through VERIFYUSER; however, USERDEFAULTS is not restricted by
security or password-validation considerations.
Syntax for C Programmers
USERDEFAULTS does not return condition codes when called from a C program.
Syntax for TAL Programmers
Parameters
error returned value
INT
returns a file-system error number indicating the outcome of the call. Common
errors returned are:
0 No error. Default user information is returned as requested.
1 End-of-file. The specified user ID or user name is undefined.
22 Parameter out of bounds. One of the parameters supplied overlays the
stack marker that was created by calling this procedure.
Note. This procedure is supported for compatibility with previous software and should not be
used for new development. This procedure does not support aliases or groups.
error := USERDEFAULTS ( [ user-id ] ! i
,[ user-name ] ! i,o
,[ volsubvol ] ! o
,[ filesecur ] ); ! o