Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/sys
File: acct.h
/* Copyright (C) 1996-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
#ifndef _SYS_ACCT_H
[17] Fix | Delete
#define _SYS_ACCT_H 1
[18] Fix | Delete
[19] Fix | Delete
#include <sys/types.h>
[20] Fix | Delete
#include <stdint.h>
[21] Fix | Delete
#include <endian.h>
[22] Fix | Delete
#include <bits/types/time_t.h>
[23] Fix | Delete
[24] Fix | Delete
__BEGIN_DECLS
[25] Fix | Delete
[26] Fix | Delete
#define ACCT_COMM 16
[27] Fix | Delete
[28] Fix | Delete
/*
[29] Fix | Delete
comp_t is a 16-bit "floating" point number with a 3-bit base 8
[30] Fix | Delete
exponent and a 13-bit fraction. See linux/kernel/acct.c for the
[31] Fix | Delete
specific encoding system used.
[32] Fix | Delete
*/
[33] Fix | Delete
[34] Fix | Delete
typedef uint16_t comp_t;
[35] Fix | Delete
[36] Fix | Delete
struct acct
[37] Fix | Delete
{
[38] Fix | Delete
char ac_flag; /* Flags. */
[39] Fix | Delete
uint16_t ac_uid; /* Real user ID. */
[40] Fix | Delete
uint16_t ac_gid; /* Real group ID. */
[41] Fix | Delete
uint16_t ac_tty; /* Controlling terminal. */
[42] Fix | Delete
uint32_t ac_btime; /* Beginning time. */
[43] Fix | Delete
comp_t ac_utime; /* User time. */
[44] Fix | Delete
comp_t ac_stime; /* System time. */
[45] Fix | Delete
comp_t ac_etime; /* Elapsed time. */
[46] Fix | Delete
comp_t ac_mem; /* Average memory usage. */
[47] Fix | Delete
comp_t ac_io; /* Chars transferred. */
[48] Fix | Delete
comp_t ac_rw; /* Blocks read or written. */
[49] Fix | Delete
comp_t ac_minflt; /* Minor pagefaults. */
[50] Fix | Delete
comp_t ac_majflt; /* Major pagefaults. */
[51] Fix | Delete
comp_t ac_swaps; /* Number of swaps. */
[52] Fix | Delete
uint32_t ac_exitcode; /* Process exitcode. */
[53] Fix | Delete
char ac_comm[ACCT_COMM+1]; /* Command name. */
[54] Fix | Delete
char ac_pad[10]; /* Padding bytes. */
[55] Fix | Delete
};
[56] Fix | Delete
[57] Fix | Delete
[58] Fix | Delete
struct acct_v3
[59] Fix | Delete
{
[60] Fix | Delete
char ac_flag; /* Flags */
[61] Fix | Delete
char ac_version; /* Always set to ACCT_VERSION */
[62] Fix | Delete
uint16_t ac_tty; /* Control Terminal */
[63] Fix | Delete
uint32_t ac_exitcode; /* Exitcode */
[64] Fix | Delete
uint32_t ac_uid; /* Real User ID */
[65] Fix | Delete
uint32_t ac_gid; /* Real Group ID */
[66] Fix | Delete
uint32_t ac_pid; /* Process ID */
[67] Fix | Delete
uint32_t ac_ppid; /* Parent Process ID */
[68] Fix | Delete
uint32_t ac_btime; /* Process Creation Time */
[69] Fix | Delete
float ac_etime; /* Elapsed Time */
[70] Fix | Delete
comp_t ac_utime; /* User Time */
[71] Fix | Delete
comp_t ac_stime; /* System Time */
[72] Fix | Delete
comp_t ac_mem; /* Average Memory Usage */
[73] Fix | Delete
comp_t ac_io; /* Chars Transferred */
[74] Fix | Delete
comp_t ac_rw; /* Blocks Read or Written */
[75] Fix | Delete
comp_t ac_minflt; /* Minor Pagefaults */
[76] Fix | Delete
comp_t ac_majflt; /* Major Pagefaults */
[77] Fix | Delete
comp_t ac_swaps; /* Number of Swaps */
[78] Fix | Delete
char ac_comm[ACCT_COMM]; /* Command Name */
[79] Fix | Delete
};
[80] Fix | Delete
[81] Fix | Delete
[82] Fix | Delete
enum
[83] Fix | Delete
{
[84] Fix | Delete
AFORK = 0x01, /* Has executed fork, but no exec. */
[85] Fix | Delete
ASU = 0x02, /* Used super-user privileges. */
[86] Fix | Delete
ACORE = 0x08, /* Dumped core. */
[87] Fix | Delete
AXSIG = 0x10 /* Killed by a signal. */
[88] Fix | Delete
};
[89] Fix | Delete
[90] Fix | Delete
#if __BYTE_ORDER == __BIG_ENDIAN
[91] Fix | Delete
# define ACCT_BYTEORDER 0x80 /* Accounting file is big endian. */
[92] Fix | Delete
#else
[93] Fix | Delete
# define ACCT_BYTEORDER 0x00 /* Accounting file is little endian. */
[94] Fix | Delete
#endif
[95] Fix | Delete
[96] Fix | Delete
#define AHZ 100
[97] Fix | Delete
[98] Fix | Delete
[99] Fix | Delete
/* Switch process accounting on and off. */
[100] Fix | Delete
extern int acct (const char *__filename) __THROW;
[101] Fix | Delete
[102] Fix | Delete
__END_DECLS
[103] Fix | Delete
[104] Fix | Delete
#endif /* sys/acct.h */
[105] Fix | Delete
[106] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function