Retrieves the specified project record from the project database.
The libaacct.a library.
The entire database is searched. If the specified record is found, the getprojdb subroutine stores the relevant project information into the struct project buffer, which is passed as an argument to this subroutine. The specified project is then made the current project in the database. If the specified project is not found, the database is reset so that the first project in the database is the current project.
Item | Description |
---|---|
handle | Pointer to the handle allocated for the project database. |
project | Pointer holding the project name whose information is required. |
flag | Integer flag indicating what type of information is sent for matching; that is, whether the match needs to be performed by project name or number. |
No restrictions. Any user can call this function.
Item | Description |
---|---|
0 | Success |
-1 | Failure |
Item | Description |
---|---|
ENOENT | Project definition not found. |
EINVAL | Invalid arguments if flag is not valid or passed pointer is NULL. |