Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../proc/self/root/usr/include
File: shadow.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
/* Declaration of types and functions for "shadow" storage of hashed
[17] Fix | Delete
passphrases. The shadow database is like the user database, but is
[18] Fix | Delete
only accessible with special privileges, so that malicious users
[19] Fix | Delete
cannot retrieve everyone else's hashed passphrase to brute-force at
[20] Fix | Delete
their convenience. */
[21] Fix | Delete
[22] Fix | Delete
#ifndef _SHADOW_H
[23] Fix | Delete
#define _SHADOW_H 1
[24] Fix | Delete
[25] Fix | Delete
#include <features.h>
[26] Fix | Delete
[27] Fix | Delete
#include <paths.h>
[28] Fix | Delete
[29] Fix | Delete
#define __need_size_t
[30] Fix | Delete
#include <stddef.h>
[31] Fix | Delete
[32] Fix | Delete
#include <bits/types/FILE.h>
[33] Fix | Delete
[34] Fix | Delete
/* Paths to the user database files. */
[35] Fix | Delete
#define SHADOW _PATH_SHADOW
[36] Fix | Delete
[37] Fix | Delete
[38] Fix | Delete
__BEGIN_DECLS
[39] Fix | Delete
[40] Fix | Delete
/* A record in the shadow database. */
[41] Fix | Delete
struct spwd
[42] Fix | Delete
{
[43] Fix | Delete
char *sp_namp; /* Login name. */
[44] Fix | Delete
char *sp_pwdp; /* Hashed passphrase. */
[45] Fix | Delete
long int sp_lstchg; /* Date of last change. */
[46] Fix | Delete
long int sp_min; /* Minimum number of days between changes. */
[47] Fix | Delete
long int sp_max; /* Maximum number of days between changes. */
[48] Fix | Delete
long int sp_warn; /* Number of days to warn user to change
[49] Fix | Delete
the password. */
[50] Fix | Delete
long int sp_inact; /* Number of days the account may be
[51] Fix | Delete
inactive. */
[52] Fix | Delete
long int sp_expire; /* Number of days since 1970-01-01 until
[53] Fix | Delete
account expires. */
[54] Fix | Delete
unsigned long int sp_flag; /* Reserved. */
[55] Fix | Delete
};
[56] Fix | Delete
[57] Fix | Delete
[58] Fix | Delete
/* Open database for reading.
[59] Fix | Delete
[60] Fix | Delete
This function is not part of POSIX and therefore no official
[61] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[62] Fix | Delete
or due to the implementation it is a cancellation point and
[63] Fix | Delete
therefore not marked with __THROW. */
[64] Fix | Delete
extern void setspent (void);
[65] Fix | Delete
[66] Fix | Delete
/* Close database.
[67] Fix | Delete
[68] Fix | Delete
This function is not part of POSIX and therefore no official
[69] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[70] Fix | Delete
or due to the implementation it is a cancellation point and
[71] Fix | Delete
therefore not marked with __THROW. */
[72] Fix | Delete
extern void endspent (void);
[73] Fix | Delete
[74] Fix | Delete
/* Get next entry from database, perhaps after opening the file.
[75] Fix | Delete
[76] Fix | Delete
This function is not part of POSIX and therefore no official
[77] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[78] Fix | Delete
or due to the implementation it is a cancellation point and
[79] Fix | Delete
therefore not marked with __THROW. */
[80] Fix | Delete
extern struct spwd *getspent (void);
[81] Fix | Delete
[82] Fix | Delete
/* Get shadow entry matching NAME.
[83] Fix | Delete
[84] Fix | Delete
This function is not part of POSIX and therefore no official
[85] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[86] Fix | Delete
or due to the implementation it is a cancellation point and
[87] Fix | Delete
therefore not marked with __THROW. */
[88] Fix | Delete
extern struct spwd *getspnam (const char *__name);
[89] Fix | Delete
[90] Fix | Delete
/* Read shadow entry from STRING.
[91] Fix | Delete
[92] Fix | Delete
This function is not part of POSIX and therefore no official
[93] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[94] Fix | Delete
or due to the implementation it is a cancellation point and
[95] Fix | Delete
therefore not marked with __THROW. */
[96] Fix | Delete
extern struct spwd *sgetspent (const char *__string);
[97] Fix | Delete
[98] Fix | Delete
/* Read next shadow entry from STREAM.
[99] Fix | Delete
[100] Fix | Delete
This function is not part of POSIX and therefore no official
[101] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[102] Fix | Delete
or due to the implementation it is a cancellation point and
[103] Fix | Delete
therefore not marked with __THROW. */
[104] Fix | Delete
extern struct spwd *fgetspent (FILE *__stream);
[105] Fix | Delete
[106] Fix | Delete
/* Write line containing shadow entry to stream.
[107] Fix | Delete
[108] Fix | Delete
This function is not part of POSIX and therefore no official
[109] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[110] Fix | Delete
or due to the implementation it is a cancellation point and
[111] Fix | Delete
therefore not marked with __THROW. */
[112] Fix | Delete
extern int putspent (const struct spwd *__p, FILE *__stream);
[113] Fix | Delete
[114] Fix | Delete
[115] Fix | Delete
#ifdef __USE_MISC
[116] Fix | Delete
/* Reentrant versions of some of the functions above.
[117] Fix | Delete
[118] Fix | Delete
These functions are not part of POSIX and therefore no official
[119] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[120] Fix | Delete
or due to the implementation they are cancellation points and
[121] Fix | Delete
therefore not marked with __THROW. */
[122] Fix | Delete
extern int getspent_r (struct spwd *__result_buf, char *__buffer,
[123] Fix | Delete
size_t __buflen, struct spwd **__result);
[124] Fix | Delete
[125] Fix | Delete
extern int getspnam_r (const char *__name, struct spwd *__result_buf,
[126] Fix | Delete
char *__buffer, size_t __buflen,
[127] Fix | Delete
struct spwd **__result);
[128] Fix | Delete
[129] Fix | Delete
extern int sgetspent_r (const char *__string, struct spwd *__result_buf,
[130] Fix | Delete
char *__buffer, size_t __buflen,
[131] Fix | Delete
struct spwd **__result);
[132] Fix | Delete
[133] Fix | Delete
extern int fgetspent_r (FILE *__stream, struct spwd *__result_buf,
[134] Fix | Delete
char *__buffer, size_t __buflen,
[135] Fix | Delete
struct spwd **__result);
[136] Fix | Delete
#endif /* misc */
[137] Fix | Delete
[138] Fix | Delete
[139] Fix | Delete
/* The simple locking functionality provided here is not suitable for
[140] Fix | Delete
multi-threaded applications. */
[141] Fix | Delete
[142] Fix | Delete
/* Request exclusive access to /etc/passwd and /etc/shadow. */
[143] Fix | Delete
extern int lckpwdf (void) __THROW;
[144] Fix | Delete
[145] Fix | Delete
/* Release exclusive access to /etc/passwd and /etc/shadow. */
[146] Fix | Delete
extern int ulckpwdf (void) __THROW;
[147] Fix | Delete
[148] Fix | Delete
__END_DECLS
[149] Fix | Delete
[150] Fix | Delete
#endif /* shadow.h */
[151] Fix | Delete
[152] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function