#, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2014-06-26 13:16+0900\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: man-pages/man5/acct.5:25 #, no-wrap msgid "ACCT" msgstr "" #. type: TH #: man-pages/man5/acct.5:25 #, no-wrap msgid "2008-06-15" msgstr "" #. type: TH #: man-pages/man5/acct.5:25 #, no-wrap msgid "Linux" msgstr "" #. type: TH #: man-pages/man5/acct.5:25 #, no-wrap msgid "Linux Programmer's Manual" msgstr "" #. type: SH #: man-pages/man5/acct.5:26 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:28 msgid "acct - process accounting file" msgstr "" #. type: SH #: man-pages/man5/acct.5:28 #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:30 msgid "B<#include Esys/acct.hE>" msgstr "" #. type: SH #: man-pages/man5/acct.5:30 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:36 msgid "" "If the kernel is built with the process accounting option enabled " "(B), then calling B(2) starts process " "accounting, for example:" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:39 msgid "acct(\"/var/log/pacct\");" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:47 msgid "" "When process accounting is enabled, the kernel writes a record to the " "accounting file as each process on the system terminates. This record " "contains information about the terminated process, and is defined in " "Isys/acct.hE> as follows:" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:51 #, no-wrap msgid "#define ACCT_COMM 16\n" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:53 #, no-wrap msgid "typedef u_int16_t comp_t;\n" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:77 #, no-wrap msgid "" "struct acct {\n" " char ac_flag; /* Accounting flags */\n" " u_int16_t ac_uid; /* Accounting user ID */\n" " u_int16_t ac_gid; /* Accounting group ID */\n" " u_int16_t ac_tty; /* Controlling terminal */\n" " u_int32_t ac_btime; /* Process creation time\n" " (seconds since the Epoch) */\n" " comp_t ac_utime; /* User CPU time */\n" " comp_t ac_stime; /* System CPU time */\n" " comp_t ac_etime; /* Elapsed time */\n" " comp_t ac_mem; /* Average memory usage (kB) */\n" " comp_t ac_io; /* Characters transferred (unused) */\n" " comp_t ac_rw; /* Blocks read or written (unused) */\n" " comp_t ac_minflt; /* Minor page faults */\n" " comp_t ac_majflt; /* Major page faults */\n" " comp_t ac_swaps; /* Number of swaps (unused) */\n" " u_int32_t ac_exitcode; /* Process termination status\n" " (see wait(2)) */\n" " char ac_comm[ACCT_COMM+1];\n" " /* Command name (basename of last\n" " executed command; null-terminated) */\n" " char ac_pad[I]; /* padding bytes */\n" "};\n" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:84 #, no-wrap msgid "" "enum { /* Bits that may be set in ac_flag field */\n" " AFORK = 0x01, /* Has executed fork, but no exec */\n" " ASU = 0x02, /* Used superuser privileges */\n" " ACORE = 0x08, /* Dumped core */\n" " AXSIG = 0x10 /* Killed by a signal */\n" "};\n" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:94 msgid "" "The I data type is a floating-point value consisting of a 3-bit, " "base-8 exponent, and a 13-bit mantissa. A value, I, of this type can be " "converted to a (long) integer as follows:" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:97 #, no-wrap msgid " v = (c & 0x1fff) EE (((c EE 13) & 0x7) * 3);\n" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:107 msgid "" "The I, I, and I fields measure time in \"clock " "ticks\"; divide these values by I to convert them to " "seconds." msgstr "" #. type: SS #: man-pages/man5/acct.5:107 #, no-wrap msgid "Version 3 accounting file format" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:122 msgid "" "Since kernel 2.6.8, an optional alternative version of the accounting file " "can be produced if the B option is set when " "building the kernel. With this option is set, the records written to the " "accounting file contain additional fields, and the width of I and " "I fields is widened from 16 to 32 bits (in line with the increased " "size of UID and GIDs in Linux 2.4 and later). The records are defined as " "follows:" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:147 #, no-wrap msgid "" "struct acct_v3 {\n" " char ac_flag; /* Flags */\n" " char ac_version; /* Always set to ACCT_VERSION (3) */\n" " u_int16_t ac_tty; /* Controlling terminal */\n" " u_int32_t ac_exitcode; /* Process termination status */\n" " u_int32_t ac_uid; /* Real user ID */\n" " u_int32_t ac_gid; /* Real group ID */\n" " u_int32_t ac_pid; /* Process ID */\n" " u_int32_t ac_ppid; /* Parent process ID */\n" " u_int32_t ac_btime; /* Process creation time */\n" " float ac_etime; /* Elapsed time */\n" " comp_t ac_utime; /* User CPU time */\n" " comp_t ac_stime; /* System time */\n" " comp_t ac_mem; /* Average memory usage (kB) */\n" " comp_t ac_io; /* Characters transferred (unused) */\n" " comp_t ac_rw; /* Blocks read or written\n" " (unused) */\n" " comp_t ac_minflt; /* Minor page faults */\n" " comp_t ac_majflt; /* Major page faults */\n" " comp_t ac_swaps; /* Number of swaps (unused) */\n" " char ac_comm[ACCT_COMM]; /* Command name */\n" "};\n" msgstr "" #. type: SH #: man-pages/man5/acct.5:149 #, no-wrap msgid "VERSIONS" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:153 msgid "The I structure is defined in glibc since version 2.6." msgstr "" #. type: SH #: man-pages/man5/acct.5:153 #, no-wrap msgid "CONFORMING TO" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:157 msgid "" "Process accounting originated on BSD. Although it is present on most " "systems, it is not standardized, and the details vary somewhat between " "systems." msgstr "" #. type: SH #: man-pages/man5/acct.5:157 #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:160 msgid "" "Records in the accounting file are ordered by termination time of the " "process." msgstr "" #. type: Plain text #: man-pages/man5/acct.5:167 msgid "" "In kernels up to and including 2.6.9, a separate accounting record is " "written for each thread created using the NPTL threading library; since " "Linux 2.6.10, a single accounting record is written for the entire process " "on termination of the last thread in the process." msgstr "" #. type: Plain text #: man-pages/man5/acct.5:174 msgid "" "The I file, described in B(5), defines settings " "that control the behavior of process accounting when disk space runs low." msgstr "" #. type: SH #: man-pages/man5/acct.5:174 #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:179 msgid "B(1), B(2), B(8), B(8)" msgstr "" #. type: SH #: man-pages/man5/acct.5:179 #, no-wrap msgid "COLOPHON" msgstr "" #. type: Plain text #: man-pages/man5/acct.5:187 msgid "" "This page is part of release 3.68 of the Linux I project. A " "description of the project, information about reporting bugs, and the latest " "version of this page, can be found at \\%http://www.kernel.org/doc/man-pages/" "." msgstr ""