1N/A * The contents of this file are subject to the terms of the 1N/A * Common Development and Distribution License (the "License"). 1N/A * You may not use this file except in compliance with the License. 1N/A * See the License for the specific language governing permissions 1N/A * and limitations under the License. 1N/A * When distributing Covered Code, include this CDDL HEADER in each 1N/A * If applicable, add the following below this CDDL HEADER, with the 1N/A * fields enclosed by brackets "[]" replaced with your own identifying 1N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 1N/A * Use is subject to license terms. 1N/A * unpack and free allocation options: the behaviour of the ea_free_object() 1N/A * function is coordinated with whether an unpack used EUP_ALLOC or EUP_NOALLOC, 1N/A * such that unpacked object hierarchies can be later freed successfully. 1N/A#
define EUP_ALLOC 0x0 /* allocate new memory for vbl length objects */ 1N/A#
define EUP_NOALLOC 0x1 /* use existing buffer for vbl length objects */ 1N/A * wracct and putacct record type options: the properties of the partial and 1N/A * interval records differ slightly: a partial record is a snapshot of the 1N/A * resource usage for the given process or task, while an interval record 1N/A * reports the current usage since the last interval record or creation. 1N/A * Interval records are supported only for tasks. 1N/A#
define EW_FINAL (
0x04)
/* final record: used only in kernel */ 1N/A * putacct contents option: the contents of the buffer passed to putacct may be 1N/A * identified either as raw data or as a packed exacct record. 1N/A#
endif /* ! _KERNEL */ 1N/A * Error codes. libexacct reports these errors through the ea_error() function; 1N/A * in the case of EXR_SYSCALL_FAIL, errno will contain the error code 1N/A * encountered by the underlying system call. * The ei_u union is discriminated via the type field of the enclosing * In prior releases, the following three functions had the type void, and so * could not return a status code. In SunOS 5.9, the return type has been * changed to int, so that if errors are detected the invoking application * can be notified appropriately. #
endif /* _SYS_EXACCT_H */