Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include
File: pwd.h
/* Copyright (C) 1991-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
/*
[17] Fix | Delete
* POSIX Standard: 9.2.2 User Database Access <pwd.h>
[18] Fix | Delete
*/
[19] Fix | Delete
[20] Fix | Delete
#ifndef _PWD_H
[21] Fix | Delete
#define _PWD_H 1
[22] Fix | Delete
[23] Fix | Delete
#include <features.h>
[24] Fix | Delete
[25] Fix | Delete
__BEGIN_DECLS
[26] Fix | Delete
[27] Fix | Delete
#include <bits/types.h>
[28] Fix | Delete
[29] Fix | Delete
#define __need_size_t
[30] Fix | Delete
#include <stddef.h>
[31] Fix | Delete
[32] Fix | Delete
#if defined __USE_XOPEN || defined __USE_XOPEN2K
[33] Fix | Delete
/* The Single Unix specification says that some more types are
[34] Fix | Delete
available here. */
[35] Fix | Delete
# ifndef __gid_t_defined
[36] Fix | Delete
typedef __gid_t gid_t;
[37] Fix | Delete
# define __gid_t_defined
[38] Fix | Delete
# endif
[39] Fix | Delete
[40] Fix | Delete
# ifndef __uid_t_defined
[41] Fix | Delete
typedef __uid_t uid_t;
[42] Fix | Delete
# define __uid_t_defined
[43] Fix | Delete
# endif
[44] Fix | Delete
#endif
[45] Fix | Delete
[46] Fix | Delete
/* A record in the user database. */
[47] Fix | Delete
struct passwd
[48] Fix | Delete
{
[49] Fix | Delete
char *pw_name; /* Username. */
[50] Fix | Delete
char *pw_passwd; /* Hashed passphrase, if shadow database
[51] Fix | Delete
not in use (see shadow.h). */
[52] Fix | Delete
__uid_t pw_uid; /* User ID. */
[53] Fix | Delete
__gid_t pw_gid; /* Group ID. */
[54] Fix | Delete
char *pw_gecos; /* Real name. */
[55] Fix | Delete
char *pw_dir; /* Home directory. */
[56] Fix | Delete
char *pw_shell; /* Shell program. */
[57] Fix | Delete
};
[58] Fix | Delete
[59] Fix | Delete
[60] Fix | Delete
#ifdef __USE_MISC
[61] Fix | Delete
# include <bits/types/FILE.h>
[62] Fix | Delete
#endif
[63] Fix | Delete
[64] Fix | Delete
[65] Fix | Delete
#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED
[66] Fix | Delete
/* Rewind the user database stream.
[67] Fix | Delete
[68] Fix | Delete
This function is a possible cancellation point and therefore not
[69] Fix | Delete
marked with __THROW. */
[70] Fix | Delete
extern void setpwent (void);
[71] Fix | Delete
[72] Fix | Delete
/* Close the user database stream.
[73] Fix | Delete
[74] Fix | Delete
This function is a possible cancellation point and therefore not
[75] Fix | Delete
marked with __THROW. */
[76] Fix | Delete
extern void endpwent (void);
[77] Fix | Delete
[78] Fix | Delete
/* Read an entry from the user database stream, opening it if necessary.
[79] Fix | Delete
[80] Fix | Delete
This function is a possible cancellation point and therefore not
[81] Fix | Delete
marked with __THROW. */
[82] Fix | Delete
extern struct passwd *getpwent (void);
[83] Fix | Delete
#endif
[84] Fix | Delete
[85] Fix | Delete
#ifdef __USE_MISC
[86] Fix | Delete
/* Read a user database entry from STREAM.
[87] Fix | Delete
[88] Fix | Delete
This function is not part of POSIX and therefore no official
[89] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[90] Fix | Delete
or due to the implementation it is a cancellation point and
[91] Fix | Delete
therefore not marked with __THROW. */
[92] Fix | Delete
extern struct passwd *fgetpwent (FILE *__stream) __nonnull ((1));
[93] Fix | Delete
[94] Fix | Delete
/* Write a given user database entry onto the given stream.
[95] Fix | Delete
[96] Fix | Delete
This function is not part of POSIX and therefore no official
[97] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[98] Fix | Delete
or due to the implementation it is a cancellation point and
[99] Fix | Delete
therefore not marked with __THROW. */
[100] Fix | Delete
extern int putpwent (const struct passwd *__restrict __p,
[101] Fix | Delete
FILE *__restrict __f);
[102] Fix | Delete
#endif
[103] Fix | Delete
[104] Fix | Delete
/* Retrieve the user database entry for the given user ID.
[105] Fix | Delete
[106] Fix | Delete
This function is a possible cancellation point and therefore not
[107] Fix | Delete
marked with __THROW. */
[108] Fix | Delete
extern struct passwd *getpwuid (__uid_t __uid);
[109] Fix | Delete
[110] Fix | Delete
/* Retrieve the user database entry for the given username.
[111] Fix | Delete
[112] Fix | Delete
This function is a possible cancellation point and therefore not
[113] Fix | Delete
marked with __THROW. */
[114] Fix | Delete
extern struct passwd *getpwnam (const char *__name) __nonnull ((1));
[115] Fix | Delete
[116] Fix | Delete
#ifdef __USE_POSIX
[117] Fix | Delete
[118] Fix | Delete
# ifdef __USE_MISC
[119] Fix | Delete
/* Reasonable value for the buffer sized used in the reentrant
[120] Fix | Delete
functions below. But better use `sysconf'. */
[121] Fix | Delete
# define NSS_BUFLEN_PASSWD 1024
[122] Fix | Delete
# endif
[123] Fix | Delete
[124] Fix | Delete
/* Reentrant versions of some of the functions above.
[125] Fix | Delete
[126] Fix | Delete
PLEASE NOTE: the `getpwent_r' function is not (yet) standardized.
[127] Fix | Delete
The interface may change in later versions of this library. But
[128] Fix | Delete
the interface is designed following the principals used for the
[129] Fix | Delete
other reentrant functions so the chances are good this is what the
[130] Fix | Delete
POSIX people would choose. */
[131] Fix | Delete
[132] Fix | Delete
# ifdef __USE_MISC
[133] Fix | Delete
/* This function is not part of POSIX and therefore no official
[134] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[135] Fix | Delete
or due to the implementation it is a cancellation point and
[136] Fix | Delete
therefore not marked with __THROW. */
[137] Fix | Delete
extern int getpwent_r (struct passwd *__restrict __resultbuf,
[138] Fix | Delete
char *__restrict __buffer, size_t __buflen,
[139] Fix | Delete
struct passwd **__restrict __result)
[140] Fix | Delete
__nonnull ((1, 2, 4));
[141] Fix | Delete
# endif
[142] Fix | Delete
[143] Fix | Delete
extern int getpwuid_r (__uid_t __uid,
[144] Fix | Delete
struct passwd *__restrict __resultbuf,
[145] Fix | Delete
char *__restrict __buffer, size_t __buflen,
[146] Fix | Delete
struct passwd **__restrict __result)
[147] Fix | Delete
__nonnull ((2, 3, 5));
[148] Fix | Delete
[149] Fix | Delete
extern int getpwnam_r (const char *__restrict __name,
[150] Fix | Delete
struct passwd *__restrict __resultbuf,
[151] Fix | Delete
char *__restrict __buffer, size_t __buflen,
[152] Fix | Delete
struct passwd **__restrict __result)
[153] Fix | Delete
__nonnull ((1, 2, 3, 5));
[154] Fix | Delete
[155] Fix | Delete
[156] Fix | Delete
# ifdef __USE_MISC
[157] Fix | Delete
/* Read a user database entry from STREAM. This function is not
[158] Fix | Delete
standardized and probably never will.
[159] Fix | Delete
[160] Fix | Delete
This function is not part of POSIX and therefore no official
[161] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[162] Fix | Delete
or due to the implementation it is a cancellation point and
[163] Fix | Delete
therefore not marked with __THROW. */
[164] Fix | Delete
extern int fgetpwent_r (FILE *__restrict __stream,
[165] Fix | Delete
struct passwd *__restrict __resultbuf,
[166] Fix | Delete
char *__restrict __buffer, size_t __buflen,
[167] Fix | Delete
struct passwd **__restrict __result)
[168] Fix | Delete
__nonnull ((1, 2, 3, 5));
[169] Fix | Delete
# endif
[170] Fix | Delete
[171] Fix | Delete
#endif /* POSIX or reentrant */
[172] Fix | Delete
[173] Fix | Delete
#ifdef __USE_GNU
[174] Fix | Delete
/* Write a traditional /etc/passwd line, based on the user database
[175] Fix | Delete
entry for the given UID, to BUFFER; space for BUFFER must be
[176] Fix | Delete
allocated by the caller.
[177] Fix | Delete
[178] Fix | Delete
This function is not part of POSIX and therefore no official
[179] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[180] Fix | Delete
or due to the implementation it is a cancellation point and
[181] Fix | Delete
therefore not marked with __THROW. */
[182] Fix | Delete
extern int getpw (__uid_t __uid, char *__buffer);
[183] Fix | Delete
#endif
[184] Fix | Delete
[185] Fix | Delete
__END_DECLS
[186] Fix | Delete
[187] Fix | Delete
#endif /* pwd.h */
[188] Fix | Delete
[189] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function