Solaris Containers: Resource Management and Solaris Zones Developer's Guide

Operations on the exacct File

These functions provide access to the exacct files:

Table 3–2 exacct File Functions

Function 

Description 

ea_open(3EXACCT)

Opens an exacct file.

ea_close(3EXACCT)

Closes an exacct file.

ea_get_object(3EXACCT)

First time use on a group of objects reads data into an ea_object_t structure. Subsequent use on the group cycles through the objects in the group.

ea_write_object(3EXACCT)

Appends the specified object to the open exacct file.

ea_next_object(3EXACCT)

Reads the basic fields (eo_catalog and eo_type) into an ea_object_t structure and rewinds to the head of the record.

ea_previous_object(3EXACCT)

Skips back one object in the exacct file and reads the basic fields (eo_catalog and eo_type) into an ea_object_t.

ea_get_hostname(3EXACCT)

Gets the name of the host on which the exacct file was created.

ea_get_creator(3EXACCT)

Determines the creator of the exacct file.