Allocates a project database handle.
The libaacct.a library.
<sys/aacct.h>
projdballoc(void **handle)
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.
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 | The passed pointer is NULL |
ENOMEM | No space left on memory |