Frees an allocated project database handle.
The libaacct.a library.
<sys/aacct.h>
projdbfree(void *handle)
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.
Item | Description |
---|---|
handle | Pointer to a void pointer |
Only for privileged users. Privilege can be extended to nonroot users by granting the CAP_AACCT capability to a user.
Item | Description |
---|---|
0 | Success |
-1 | Failure |
Item | Description |
---|---|
EINVAL | Passed pointer is NULL |