Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../proc/self/root/usr/include
File: utmp.h
/* Copyright (C) 1993-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 _UTMP_H
[17] Fix | Delete
#define _UTMP_H 1
[18] Fix | Delete
[19] Fix | Delete
#include <features.h>
[20] Fix | Delete
[21] Fix | Delete
#include <sys/types.h>
[22] Fix | Delete
[23] Fix | Delete
[24] Fix | Delete
__BEGIN_DECLS
[25] Fix | Delete
[26] Fix | Delete
/* Get system dependent values and data structures. */
[27] Fix | Delete
#include <bits/utmp.h>
[28] Fix | Delete
[29] Fix | Delete
/* Compatibility names for the strings of the canonical file names. */
[30] Fix | Delete
#define UTMP_FILE _PATH_UTMP
[31] Fix | Delete
#define UTMP_FILENAME _PATH_UTMP
[32] Fix | Delete
#define WTMP_FILE _PATH_WTMP
[33] Fix | Delete
#define WTMP_FILENAME _PATH_WTMP
[34] Fix | Delete
[35] Fix | Delete
[36] Fix | Delete
[37] Fix | Delete
/* Make FD be the controlling terminal, stdin, stdout, and stderr;
[38] Fix | Delete
then close FD. Returns 0 on success, nonzero on error. */
[39] Fix | Delete
extern int login_tty (int __fd) __THROW;
[40] Fix | Delete
[41] Fix | Delete
[42] Fix | Delete
/* Write the given entry into utmp and wtmp. */
[43] Fix | Delete
extern void login (const struct utmp *__entry) __THROW;
[44] Fix | Delete
[45] Fix | Delete
/* Write the utmp entry to say the user on UT_LINE has logged out. */
[46] Fix | Delete
extern int logout (const char *__ut_line) __THROW;
[47] Fix | Delete
[48] Fix | Delete
/* Append to wtmp an entry for the current time and the given info. */
[49] Fix | Delete
extern void logwtmp (const char *__ut_line, const char *__ut_name,
[50] Fix | Delete
const char *__ut_host) __THROW;
[51] Fix | Delete
[52] Fix | Delete
/* Append entry UTMP to the wtmp-like file WTMP_FILE. */
[53] Fix | Delete
extern void updwtmp (const char *__wtmp_file, const struct utmp *__utmp)
[54] Fix | Delete
__THROW;
[55] Fix | Delete
[56] Fix | Delete
/* Change name of the utmp file to be examined. */
[57] Fix | Delete
extern int utmpname (const char *__file) __THROW;
[58] Fix | Delete
[59] Fix | Delete
/* Read next entry from a utmp-like file. */
[60] Fix | Delete
extern struct utmp *getutent (void) __THROW;
[61] Fix | Delete
[62] Fix | Delete
/* Reset the input stream to the beginning of the file. */
[63] Fix | Delete
extern void setutent (void) __THROW;
[64] Fix | Delete
[65] Fix | Delete
/* Close the current open file. */
[66] Fix | Delete
extern void endutent (void) __THROW;
[67] Fix | Delete
[68] Fix | Delete
/* Search forward from the current point in the utmp file until the
[69] Fix | Delete
next entry with a ut_type matching ID->ut_type. */
[70] Fix | Delete
extern struct utmp *getutid (const struct utmp *__id) __THROW;
[71] Fix | Delete
[72] Fix | Delete
/* Search forward from the current point in the utmp file until the
[73] Fix | Delete
next entry with a ut_line matching LINE->ut_line. */
[74] Fix | Delete
extern struct utmp *getutline (const struct utmp *__line) __THROW;
[75] Fix | Delete
[76] Fix | Delete
/* Write out entry pointed to by UTMP_PTR into the utmp file. */
[77] Fix | Delete
extern struct utmp *pututline (const struct utmp *__utmp_ptr) __THROW;
[78] Fix | Delete
[79] Fix | Delete
[80] Fix | Delete
#ifdef __USE_MISC
[81] Fix | Delete
/* Reentrant versions of the file for handling utmp files. */
[82] Fix | Delete
extern int getutent_r (struct utmp *__buffer, struct utmp **__result) __THROW;
[83] Fix | Delete
[84] Fix | Delete
extern int getutid_r (const struct utmp *__id, struct utmp *__buffer,
[85] Fix | Delete
struct utmp **__result) __THROW;
[86] Fix | Delete
[87] Fix | Delete
extern int getutline_r (const struct utmp *__line,
[88] Fix | Delete
struct utmp *__buffer, struct utmp **__result) __THROW;
[89] Fix | Delete
[90] Fix | Delete
#endif /* Use misc. */
[91] Fix | Delete
[92] Fix | Delete
__END_DECLS
[93] Fix | Delete
[94] Fix | Delete
#endif /* utmp.h */
[95] Fix | Delete
[96] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function