Lines Matching refs:type
101 * Return the localized name of an accounting type.
104 ac_type_name(int type)
106 switch (type) {
116 die(gettext("invalid type %d\n"), type);
125 * requested type. Needs euid 0 to open the root-owned accounting file.
131 open_exacct_file(const char *file, int type)
140 if (!verify_exacct_file(file, type)) {
142 ac_type_name(type));
151 rc = acctctl(type | AC_FILE_SET, (void *) file, strlen(file) + 1);
162 if (acctctl(type | AC_FILE_GET, name, sizeof (name)) == 0 &&
180 ac_type_name(type), file, strerror(err));
186 * of the desired type.
189 verify_exacct_file(const char *file, int type)
210 * file is or is not the proper type of extended
213 * accounting file, it matches any desired type.
226 * record, the same type as is desired.
233 (!(c == EXD_GROUP_PROC && type == AC_PROC ||
234 c == EXD_GROUP_TASK && type == AC_TASK ||
235 c == EXD_GROUP_FLOW && type == AC_FLOW ||
240 type == AC_NET))) {