getpagvalue or getpagvalue64 Subroutine

Purpose

Returns the Process Authentication Group (PAG) value for a given PAG type.

Library

Security Library (libc.a)

Syntax

#include <pag.h>

int getpagvalue ( name )
char * name;

uint64_t getpagvalue64( name );
char * name;

Description

The getpagvalue and getpagvalue64 subroutines retrieve the PAG value for a given PAG name. For these functions to succeed, the PAG name must be registered with the operating system before these subroutines are called.

Parameters

Item Description
name A 1-character to 4-character, NULL-terminated name for the PAG type. Typical values include afs, dfs, pki, and krb5.

Return Values

The getpagvalue and getpagvalue64 subroutines return a PAG value upon successful completion. Upon a failure, a value of -1 is returned and the errno global variable is set to indicate the error.

Error Codes

The getpagvalue and getpagvalue64 subroutines fail if the following condition is true:

Item Description
EINVAL The named PAG type does not exist as part of the table.

Other errors might be set by subroutines invoked by the getpagvalue and getpagvalue64 subroutines.