Sets the handle to use a local project database as specified in the dbfile pointer and opens the file with the specified mode.
The libaacct.a library.
The projdbfinit subroutine sets the specified handle to use the specified project definition file. The file is opened in the specified mode. Subsequently, the project database, as represented by the handle parameter, will be referenced through file system primitives.
projdb.type = PROJ_LOCAL
projdb.fdes = value returned from open() call.
If the file parameter is NULL, then the system project database is opened.
Item | Description |
---|---|
handle | Pointer to handle |
file | Indicate the project definition file name |
mode | Indicates the mode in which the file is opened |
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 handle or file is invalid |