Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../proc/self/root/usr/include
File: grp.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.1 Group Database Access <grp.h>
[18] Fix | Delete
*/
[19] Fix | Delete
[20] Fix | Delete
#ifndef _GRP_H
[21] Fix | Delete
#define _GRP_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
[33] Fix | Delete
/* For the Single Unix specification we must define this type here. */
[34] Fix | Delete
#if (defined __USE_XOPEN || defined __USE_XOPEN2K) && !defined __gid_t_defined
[35] Fix | Delete
typedef __gid_t gid_t;
[36] Fix | Delete
# define __gid_t_defined
[37] Fix | Delete
#endif
[38] Fix | Delete
[39] Fix | Delete
/* The group structure. */
[40] Fix | Delete
struct group
[41] Fix | Delete
{
[42] Fix | Delete
char *gr_name; /* Group name. */
[43] Fix | Delete
char *gr_passwd; /* Password. */
[44] Fix | Delete
__gid_t gr_gid; /* Group ID. */
[45] Fix | Delete
char **gr_mem; /* Member list. */
[46] Fix | Delete
};
[47] Fix | Delete
[48] Fix | Delete
[49] Fix | Delete
#ifdef __USE_MISC
[50] Fix | Delete
# include <bits/types/FILE.h>
[51] Fix | Delete
#endif
[52] Fix | Delete
[53] Fix | Delete
[54] Fix | Delete
#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED
[55] Fix | Delete
/* Rewind the group-file stream.
[56] Fix | Delete
[57] Fix | Delete
This function is a possible cancellation point and therefore not
[58] Fix | Delete
marked with __THROW. */
[59] Fix | Delete
extern void setgrent (void);
[60] Fix | Delete
[61] Fix | Delete
/* Close the group-file stream.
[62] Fix | Delete
[63] Fix | Delete
This function is a possible cancellation point and therefore not
[64] Fix | Delete
marked with __THROW. */
[65] Fix | Delete
extern void endgrent (void);
[66] Fix | Delete
[67] Fix | Delete
/* Read an entry from the group-file stream, opening it if necessary.
[68] Fix | Delete
[69] Fix | Delete
This function is a possible cancellation point and therefore not
[70] Fix | Delete
marked with __THROW. */
[71] Fix | Delete
extern struct group *getgrent (void);
[72] Fix | Delete
#endif
[73] Fix | Delete
[74] Fix | Delete
#ifdef __USE_MISC
[75] Fix | Delete
/* Read a group entry from STREAM.
[76] Fix | Delete
[77] Fix | Delete
This function is not part of POSIX and therefore no official
[78] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[79] Fix | Delete
or due to the implementation it is a cancellation point and
[80] Fix | Delete
therefore not marked with __THROW. */
[81] Fix | Delete
extern struct group *fgetgrent (FILE *__stream);
[82] Fix | Delete
#endif
[83] Fix | Delete
[84] Fix | Delete
#ifdef __USE_GNU
[85] Fix | Delete
/* Write the given entry onto the given stream.
[86] Fix | Delete
[87] Fix | Delete
This function is not part of POSIX and therefore no official
[88] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[89] Fix | Delete
or due to the implementation it is a cancellation point and
[90] Fix | Delete
therefore not marked with __THROW. */
[91] Fix | Delete
extern int putgrent (const struct group *__restrict __p,
[92] Fix | Delete
FILE *__restrict __f);
[93] Fix | Delete
#endif
[94] Fix | Delete
[95] Fix | Delete
/* Search for an entry with a matching group ID.
[96] Fix | Delete
[97] Fix | Delete
This function is a possible cancellation point and therefore not
[98] Fix | Delete
marked with __THROW. */
[99] Fix | Delete
extern struct group *getgrgid (__gid_t __gid);
[100] Fix | Delete
[101] Fix | Delete
/* Search for an entry with a matching group name.
[102] Fix | Delete
[103] Fix | Delete
This function is a possible cancellation point and therefore not
[104] Fix | Delete
marked with __THROW. */
[105] Fix | Delete
extern struct group *getgrnam (const char *__name);
[106] Fix | Delete
[107] Fix | Delete
#ifdef __USE_POSIX
[108] Fix | Delete
[109] Fix | Delete
# ifdef __USE_MISC
[110] Fix | Delete
/* Reasonable value for the buffer sized used in the reentrant
[111] Fix | Delete
functions below. But better use `sysconf'. */
[112] Fix | Delete
# define NSS_BUFLEN_GROUP 1024
[113] Fix | Delete
# endif
[114] Fix | Delete
[115] Fix | Delete
/* Reentrant versions of some of the functions above.
[116] Fix | Delete
[117] Fix | Delete
PLEASE NOTE: the `getgrent_r' function is not (yet) standardized.
[118] Fix | Delete
The interface may change in later versions of this library. But
[119] Fix | Delete
the interface is designed following the principals used for the
[120] Fix | Delete
other reentrant functions so the chances are good this is what the
[121] Fix | Delete
POSIX people would choose.
[122] Fix | Delete
[123] Fix | Delete
This function is not part of POSIX and therefore no official
[124] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[125] Fix | Delete
or due to the implementation it is a cancellation point and
[126] Fix | Delete
therefore not marked with __THROW. */
[127] Fix | Delete
[128] Fix | Delete
# ifdef __USE_GNU
[129] Fix | Delete
extern int getgrent_r (struct group *__restrict __resultbuf,
[130] Fix | Delete
char *__restrict __buffer, size_t __buflen,
[131] Fix | Delete
struct group **__restrict __result);
[132] Fix | Delete
# endif
[133] Fix | Delete
[134] Fix | Delete
/* Search for an entry with a matching group ID.
[135] Fix | Delete
[136] Fix | Delete
This function is a possible cancellation point and therefore not
[137] Fix | Delete
marked with __THROW. */
[138] Fix | Delete
extern int getgrgid_r (__gid_t __gid, struct group *__restrict __resultbuf,
[139] Fix | Delete
char *__restrict __buffer, size_t __buflen,
[140] Fix | Delete
struct group **__restrict __result);
[141] Fix | Delete
[142] Fix | Delete
/* Search for an entry with a matching group name.
[143] Fix | Delete
[144] Fix | Delete
This function is a possible cancellation point and therefore not
[145] Fix | Delete
marked with __THROW. */
[146] Fix | Delete
extern int getgrnam_r (const char *__restrict __name,
[147] Fix | Delete
struct group *__restrict __resultbuf,
[148] Fix | Delete
char *__restrict __buffer, size_t __buflen,
[149] Fix | Delete
struct group **__restrict __result);
[150] Fix | Delete
[151] Fix | Delete
# ifdef __USE_MISC
[152] Fix | Delete
/* Read a group entry from STREAM. This function is not standardized
[153] Fix | Delete
an probably never will.
[154] Fix | Delete
[155] Fix | Delete
This function is not part of POSIX and therefore no official
[156] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[157] Fix | Delete
or due to the implementation it is a cancellation point and
[158] Fix | Delete
therefore not marked with __THROW. */
[159] Fix | Delete
extern int fgetgrent_r (FILE *__restrict __stream,
[160] Fix | Delete
struct group *__restrict __resultbuf,
[161] Fix | Delete
char *__restrict __buffer, size_t __buflen,
[162] Fix | Delete
struct group **__restrict __result);
[163] Fix | Delete
# endif
[164] Fix | Delete
[165] Fix | Delete
#endif /* POSIX or reentrant */
[166] Fix | Delete
[167] Fix | Delete
[168] Fix | Delete
#ifdef __USE_MISC
[169] Fix | Delete
[170] Fix | Delete
# define __need_size_t
[171] Fix | Delete
# include <stddef.h>
[172] Fix | Delete
[173] Fix | Delete
/* Set the group set for the current user to GROUPS (N of them). */
[174] Fix | Delete
extern int setgroups (size_t __n, const __gid_t *__groups) __THROW;
[175] Fix | Delete
[176] Fix | Delete
/* Store at most *NGROUPS members of the group set for USER into
[177] Fix | Delete
*GROUPS. Also include GROUP. The actual number of groups found is
[178] Fix | Delete
returned in *NGROUPS. Return -1 if the if *NGROUPS is too small.
[179] Fix | Delete
[180] Fix | Delete
This function is not part of POSIX and therefore no official
[181] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[182] Fix | Delete
or due to the implementation it is a cancellation point and
[183] Fix | Delete
therefore not marked with __THROW. */
[184] Fix | Delete
extern int getgrouplist (const char *__user, __gid_t __group,
[185] Fix | Delete
__gid_t *__groups, int *__ngroups);
[186] Fix | Delete
[187] Fix | Delete
/* Initialize the group set for the current user
[188] Fix | Delete
by reading the group database and using all groups
[189] Fix | Delete
of which USER is a member. Also include GROUP.
[190] Fix | Delete
[191] Fix | Delete
This function is not part of POSIX and therefore no official
[192] Fix | Delete
cancellation point. But due to similarity with an POSIX interface
[193] Fix | Delete
or due to the implementation it is a cancellation point and
[194] Fix | Delete
therefore not marked with __THROW. */
[195] Fix | Delete
extern int initgroups (const char *__user, __gid_t __group);
[196] Fix | Delete
[197] Fix | Delete
#endif /* Use misc. */
[198] Fix | Delete
[199] Fix | Delete
__END_DECLS
[200] Fix | Delete
[201] Fix | Delete
#endif /* grp.h */
[202] Fix | Delete
[203] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function