Retrieves a list of process transaction records based on the criteria specified.
The libaacct.a library.
#define <sys/aacct.h>
int buildproclist(crit, crit_list, n_crit, p_list, sublist)
int crit;
union proc_crit *crit_list;
int n_crit;
struct aacct_tran_rec *p_list;
struct aacct_tran_rec **sublist;
Usually, the master list of transaction records is obtained by a prior call to the getproclist subroutine.
| Item | Description |
|---|---|
| crit | Integer value representing the selection criteria for the process records. |
| crit_list | Pointer to union proc_crit where the data for the selection criteria is passed. |
| n_crit | Number of elements to be considered for the selection, such as the number of user IDs. |
| p_list | Master list of process transaction records. |
| sublist | Pointer to the linked list of aacct_tran_rec structures, which hold the retrieved process transaction records. |
No restrictions. Any user can call this function.
| Item | Description |
|---|---|
| 0 | The call to the subroutine was successful. |
| -1 | The call to the subroutine failed. |
| Item | Description |
|---|---|
| EINVAL | The passed pointer is NULL. |
| ENOMEM | Insufficient memory. |
| EPERM | Permission denied. Unable to read the data file. |