projdballoc Subroutine

Purpose

Allocates a project database handle.

Library

The libaacct.a library.

Syntax

<sys/aacct.h>

projdballoc(void **handle)

Description

The projdballoc subroutine allocates a handle to operate on the project database. By default, this handle is initialized to operate on the system project database; however, it can be reset with the projdbfinit subroutine to reference another project database.

Parameters

Item Description
handle Pointer to a void pointer

Security

Only for privileged users. Privilege can be extended to nonroot users by granting the CAP_AACCT capability to a user.

Return Values

Item Description
0 Success
-1 Failure

Error Codes

Item Description
EINVAL The passed pointer is NULL
ENOMEM No space left on memory