Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bits
File: utmp.h
/* The `struct utmp' type, describing entries in the utmp file.
[0] Fix | Delete
Copyright (C) 1993-2019 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 _UTMP_H
[18] Fix | Delete
# error "Never include <bits/utmp.h> directly; use <utmp.h> instead."
[19] Fix | Delete
#endif
[20] Fix | Delete
[21] Fix | Delete
#include <paths.h>
[22] Fix | Delete
#include <sys/time.h>
[23] Fix | Delete
#include <sys/types.h>
[24] Fix | Delete
#include <bits/wordsize.h>
[25] Fix | Delete
[26] Fix | Delete
[27] Fix | Delete
#define UT_LINESIZE 32
[28] Fix | Delete
#define UT_NAMESIZE 32
[29] Fix | Delete
#define UT_HOSTSIZE 256
[30] Fix | Delete
[31] Fix | Delete
[32] Fix | Delete
/* The structure describing an entry in the database of
[33] Fix | Delete
previous logins. */
[34] Fix | Delete
struct lastlog
[35] Fix | Delete
{
[36] Fix | Delete
#if __WORDSIZE_TIME64_COMPAT32
[37] Fix | Delete
int32_t ll_time;
[38] Fix | Delete
#else
[39] Fix | Delete
__time_t ll_time;
[40] Fix | Delete
#endif
[41] Fix | Delete
char ll_line[UT_LINESIZE];
[42] Fix | Delete
char ll_host[UT_HOSTSIZE];
[43] Fix | Delete
};
[44] Fix | Delete
[45] Fix | Delete
[46] Fix | Delete
/* The structure describing the status of a terminated process. This
[47] Fix | Delete
type is used in `struct utmp' below. */
[48] Fix | Delete
struct exit_status
[49] Fix | Delete
{
[50] Fix | Delete
short int e_termination; /* Process termination status. */
[51] Fix | Delete
short int e_exit; /* Process exit status. */
[52] Fix | Delete
};
[53] Fix | Delete
[54] Fix | Delete
[55] Fix | Delete
/* The structure describing an entry in the user accounting database. */
[56] Fix | Delete
struct utmp
[57] Fix | Delete
{
[58] Fix | Delete
short int ut_type; /* Type of login. */
[59] Fix | Delete
pid_t ut_pid; /* Process ID of login process. */
[60] Fix | Delete
char ut_line[UT_LINESIZE]
[61] Fix | Delete
__attribute_nonstring__; /* Devicename. */
[62] Fix | Delete
char ut_id[4]
[63] Fix | Delete
__attribute_nonstring__; /* Inittab ID. */
[64] Fix | Delete
char ut_user[UT_NAMESIZE]
[65] Fix | Delete
__attribute_nonstring__; /* Username. */
[66] Fix | Delete
char ut_host[UT_HOSTSIZE]
[67] Fix | Delete
__attribute_nonstring__; /* Hostname for remote login. */
[68] Fix | Delete
struct exit_status ut_exit; /* Exit status of a process marked
[69] Fix | Delete
as DEAD_PROCESS. */
[70] Fix | Delete
/* The ut_session and ut_tv fields must be the same size when compiled
[71] Fix | Delete
32- and 64-bit. This allows data files and shared memory to be
[72] Fix | Delete
shared between 32- and 64-bit applications. */
[73] Fix | Delete
#if __WORDSIZE_TIME64_COMPAT32
[74] Fix | Delete
int32_t ut_session; /* Session ID, used for windowing. */
[75] Fix | Delete
struct
[76] Fix | Delete
{
[77] Fix | Delete
int32_t tv_sec; /* Seconds. */
[78] Fix | Delete
int32_t tv_usec; /* Microseconds. */
[79] Fix | Delete
} ut_tv; /* Time entry was made. */
[80] Fix | Delete
#else
[81] Fix | Delete
long int ut_session; /* Session ID, used for windowing. */
[82] Fix | Delete
struct timeval ut_tv; /* Time entry was made. */
[83] Fix | Delete
#endif
[84] Fix | Delete
[85] Fix | Delete
int32_t ut_addr_v6[4]; /* Internet address of remote host. */
[86] Fix | Delete
char __glibc_reserved[20]; /* Reserved for future use. */
[87] Fix | Delete
};
[88] Fix | Delete
[89] Fix | Delete
/* Backwards compatibility hacks. */
[90] Fix | Delete
#define ut_name ut_user
[91] Fix | Delete
#ifndef _NO_UT_TIME
[92] Fix | Delete
/* We have a problem here: `ut_time' is also used otherwise. Define
[93] Fix | Delete
_NO_UT_TIME if the compiler complains. */
[94] Fix | Delete
# define ut_time ut_tv.tv_sec
[95] Fix | Delete
#endif
[96] Fix | Delete
#define ut_xtime ut_tv.tv_sec
[97] Fix | Delete
#define ut_addr ut_addr_v6[0]
[98] Fix | Delete
[99] Fix | Delete
[100] Fix | Delete
/* Values for the `ut_type' field of a `struct utmp'. */
[101] Fix | Delete
#define EMPTY 0 /* No valid user accounting information. */
[102] Fix | Delete
[103] Fix | Delete
#define RUN_LVL 1 /* The system's runlevel. */
[104] Fix | Delete
#define BOOT_TIME 2 /* Time of system boot. */
[105] Fix | Delete
#define NEW_TIME 3 /* Time after system clock changed. */
[106] Fix | Delete
#define OLD_TIME 4 /* Time when system clock changed. */
[107] Fix | Delete
[108] Fix | Delete
#define INIT_PROCESS 5 /* Process spawned by the init process. */
[109] Fix | Delete
#define LOGIN_PROCESS 6 /* Session leader of a logged in user. */
[110] Fix | Delete
#define USER_PROCESS 7 /* Normal process. */
[111] Fix | Delete
#define DEAD_PROCESS 8 /* Terminated process. */
[112] Fix | Delete
[113] Fix | Delete
#define ACCOUNTING 9
[114] Fix | Delete
[115] Fix | Delete
/* Old Linux name for the EMPTY type. */
[116] Fix | Delete
#define UT_UNKNOWN EMPTY
[117] Fix | Delete
[118] Fix | Delete
[119] Fix | Delete
/* Tell the user that we have a modern system with UT_HOST, UT_PID,
[120] Fix | Delete
UT_TYPE, UT_ID and UT_TV fields. */
[121] Fix | Delete
#define _HAVE_UT_TYPE 1
[122] Fix | Delete
#define _HAVE_UT_PID 1
[123] Fix | Delete
#define _HAVE_UT_ID 1
[124] Fix | Delete
#define _HAVE_UT_TV 1
[125] Fix | Delete
#define _HAVE_UT_HOST 1
[126] Fix | Delete
[127] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function