projdbfree Subroutine

Purpose

Frees an allocated project database handle.

Library

The libaacct.a library.

Syntax

<sys/aacct.h>

projdbfree(void *handle)

Description

The projdbfree subroutine releases the memory allocated to a project database handle. The closure operation is based on the type of project database. If a project database is local, then it is closed using system primitives. The project database must be initialized before calling this subroutine. The routines projdballoc and projdbfinit are provided for this purpose.

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 Passed pointer is NULL