The Sun::Solaris::Exacct::File module has no functions.
The Perl extensions to the libexacct(3LIB) API provide the following class method forSun::Solaris::Exacct::File.
new |
The following table describes the new() action for combinations of the $oflags and $aflags parameters.
Table 4–2 $oflags and $aflags Parameters
$oflags |
$aflags |
Action |
---|---|---|
O_RDONLY |
Absent or EO_HEAD |
Open for reading at the start of the file. |
O_RDONLY |
EO_TAIL |
Open for reading at the end of the file. |
O_WRONLY |
Ignored |
File must exist, open for writing at the end of the file. |
O_WRONLY | O_CREAT |
Ignored |
Create file if the file does not exist. Otherwise, truncate, and open for writing. |
O_RDWR |
Ignored |
File must exist, open for reading or writing, at the end of the file. |
O_RDWR | O_CREAT |
Ignored |
Create file if the file does not exist. Otherwise, truncate, and open for reading or writing. |
The only valid values for $oflags are the combinations of O_RDONLY, O_WRONLY, O_RDWR or O_CREAT. $aflags describes the required positioning in the file for O_RDONLY. Either EO_HEAD or EO_TAIL are allowed. If absent, EO_HEAD is assumed.
The perl extensions to the libexacct(3LIB) API provide the following object methods forSun::Solaris::Exacct::File.
creator |
hostname |
next |
previous |
get |
write |
Close a Sun::Solaris::Exacct::File. There is no explicit close() method for a Sun::Solaris::Exacct::File. The file is closed when the filehandle object is undefined or reassigned.