Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bits
File: utmpx.h
/* Structures and definitions for the user accounting database. GNU version.
[0] Fix | Delete
Copyright (C) 1997-2018 Free Software Foundation, Inc.
[1] Fix | Delete
This file is part of the GNU C Library.
[2] Fix | Delete
[3] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[4] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[5] Fix | Delete
License as published by the Free Software Foundation; either
[6] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[7] Fix | Delete
[8] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[9] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[10] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[11] Fix | Delete
Lesser General Public License for more details.
[12] Fix | Delete
[13] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[14] Fix | Delete
License along with the GNU C Library; if not, see
[15] Fix | Delete
<http://www.gnu.org/licenses/>. */
[16] Fix | Delete
[17] Fix | Delete
#ifndef _UTMPX_H
[18] Fix | Delete
# error "Never include <bits/utmpx.h> directly; use <utmpx.h> instead."
[19] Fix | Delete
#endif
[20] Fix | Delete
[21] Fix | Delete
#include <bits/types.h>
[22] Fix | Delete
#include <sys/time.h>
[23] Fix | Delete
#include <bits/wordsize.h>
[24] Fix | Delete
[25] Fix | Delete
[26] Fix | Delete
#ifdef __USE_GNU
[27] Fix | Delete
# include <paths.h>
[28] Fix | Delete
# define _PATH_UTMPX _PATH_UTMP
[29] Fix | Delete
# define _PATH_WTMPX _PATH_WTMP
[30] Fix | Delete
#endif
[31] Fix | Delete
[32] Fix | Delete
[33] Fix | Delete
#define __UT_LINESIZE 32
[34] Fix | Delete
#define __UT_NAMESIZE 32
[35] Fix | Delete
#define __UT_HOSTSIZE 256
[36] Fix | Delete
[37] Fix | Delete
[38] Fix | Delete
/* The structure describing the status of a terminated process. This
[39] Fix | Delete
type is used in `struct utmpx' below. */
[40] Fix | Delete
struct __exit_status
[41] Fix | Delete
{
[42] Fix | Delete
#ifdef __USE_GNU
[43] Fix | Delete
short int e_termination; /* Process termination status. */
[44] Fix | Delete
short int e_exit; /* Process exit status. */
[45] Fix | Delete
#else
[46] Fix | Delete
short int __e_termination; /* Process termination status. */
[47] Fix | Delete
short int __e_exit; /* Process exit status. */
[48] Fix | Delete
#endif
[49] Fix | Delete
};
[50] Fix | Delete
[51] Fix | Delete
[52] Fix | Delete
/* The structure describing an entry in the user accounting database. */
[53] Fix | Delete
struct utmpx
[54] Fix | Delete
{
[55] Fix | Delete
short int ut_type; /* Type of login. */
[56] Fix | Delete
__pid_t ut_pid; /* Process ID of login process. */
[57] Fix | Delete
char ut_line[__UT_LINESIZE]
[58] Fix | Delete
__attribute_nonstring__; /* Devicename. */
[59] Fix | Delete
char ut_id[4]
[60] Fix | Delete
__attribute_nonstring__; /* Inittab ID. */
[61] Fix | Delete
char ut_user[__UT_NAMESIZE]
[62] Fix | Delete
__attribute_nonstring__; /* Username. */
[63] Fix | Delete
char ut_host[__UT_HOSTSIZE]
[64] Fix | Delete
__attribute_nonstring__; /* Hostname for remote login. */
[65] Fix | Delete
struct __exit_status ut_exit; /* Exit status of a process marked
[66] Fix | Delete
as DEAD_PROCESS. */
[67] Fix | Delete
[68] Fix | Delete
/* The fields ut_session and ut_tv must be the same size when compiled
[69] Fix | Delete
32- and 64-bit. This allows files and shared memory to be shared
[70] Fix | Delete
between 32- and 64-bit applications. */
[71] Fix | Delete
#if __WORDSIZE_TIME64_COMPAT32
[72] Fix | Delete
__int32_t ut_session; /* Session ID, used for windowing. */
[73] Fix | Delete
struct
[74] Fix | Delete
{
[75] Fix | Delete
__int32_t tv_sec; /* Seconds. */
[76] Fix | Delete
__int32_t tv_usec; /* Microseconds. */
[77] Fix | Delete
} ut_tv; /* Time entry was made. */
[78] Fix | Delete
#else
[79] Fix | Delete
long int ut_session; /* Session ID, used for windowing. */
[80] Fix | Delete
struct timeval ut_tv; /* Time entry was made. */
[81] Fix | Delete
#endif
[82] Fix | Delete
__int32_t ut_addr_v6[4]; /* Internet address of remote host. */
[83] Fix | Delete
char __glibc_reserved[20]; /* Reserved for future use. */
[84] Fix | Delete
};
[85] Fix | Delete
[86] Fix | Delete
[87] Fix | Delete
/* Values for the `ut_type' field of a `struct utmpx'. */
[88] Fix | Delete
#define EMPTY 0 /* No valid user accounting information. */
[89] Fix | Delete
[90] Fix | Delete
#ifdef __USE_GNU
[91] Fix | Delete
# define RUN_LVL 1 /* The system's runlevel. */
[92] Fix | Delete
#endif
[93] Fix | Delete
#define BOOT_TIME 2 /* Time of system boot. */
[94] Fix | Delete
#define NEW_TIME 3 /* Time after system clock changed. */
[95] Fix | Delete
#define OLD_TIME 4 /* Time when system clock changed. */
[96] Fix | Delete
[97] Fix | Delete
#define INIT_PROCESS 5 /* Process spawned by the init process. */
[98] Fix | Delete
#define LOGIN_PROCESS 6 /* Session leader of a logged in user. */
[99] Fix | Delete
#define USER_PROCESS 7 /* Normal process. */
[100] Fix | Delete
#define DEAD_PROCESS 8 /* Terminated process. */
[101] Fix | Delete
[102] Fix | Delete
#ifdef __USE_GNU
[103] Fix | Delete
# define ACCOUNTING 9 /* System accounting. */
[104] Fix | Delete
#endif
[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