.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 19:38:44 1993 by Rik Faith (faith@cs.unc.edu) .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH fgetgrent 3 "20 lipca 2023 r." "Linux man\-pages 6.05.01" .SH NAZWA fgetgrent \- pobranie wpisu z pliku grup .SH BIBLIOTEKA Standardowa biblioteka C (\fIlibc\fP, \fI\-lc\fP) .SH SKŁADNIA .nf \fB#include \fP \fB#include \fP \fB#include \fP .PP \fBstruct group *fgetgrent(FILE *\fP\fIstream\fP\fB);\fP .fi .PP .RS -4 Wymagane ustawienia makr biblioteki glibc (patrz \fBfeature_test_macros\fP(7)): .RE .PP \fBfgetgrent\fP(): .nf Od glibc 2.19: _DEFAULT_SOURCE glibc 2.19 i wcześniejsze: _SVID_SOURCE .fi .SH OPIS Funkcja \fBfgetgrent\fP() zwraca wskaźnik do struktury zawierającej informacje o grupie z odczytane z pliku, do którego odnosi się strumień \fIstream\fP. Po pierwszym wywołaniu zwraca pierwszą pozycję, później zwraca kolejne. Plik, do którego odnosi się \fIstream\fP, musi mieć taki sam format, jak \fI/etc/group\fP (patrz \fBgroup\fP(5)). .PP Struktura \fIgroup\fP jest następująco zdefiniowana w pliku \fI\fP: .PP .in +4n .EX struct group { char *gr_name; /* nazwa grupy */ char *gr_passwd; /* hasło grupy */ gid_t gr_gid; /* identyfikator grupy */ char **gr_mem; /* zakończona NULL\-em tablica wskaźników do nazw członków grupy */ }; .EE .in .SH "WARTOŚĆ ZWRACANA" The \fBfgetgrent\fP() function returns a pointer to a \fIgroup\fP structure, or NULL if there are no more entries or an error occurs. In the event of an error, \fIerrno\fP is set to indicate the error. .SH BŁĘDY .TP \fBENOMEM\fP Zabrakło pamięci na przydzielenie struktury \fIgroup\fP. .SH ATRYBUTY Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfejs Atrybut Wartość T{ .na .nh \fBfgetgrent\fP() T} Bezpieczeństwo wątkowe MT\-Unsafe race:fgetgrent .TE .sp 1 .\" FIXME The marking is different from that in the glibc manual, .\" which has: .\" .\" fgetgrent: MT-Unsafe race:fgrent .\" .\" We think race:fgrent in glibc may be hard for users to understand, .\" and have sent a patch to the GNU libc community for changing it to .\" race:fgetgrent, however, something about the copyright impeded the .\" progress. .SH STANDARDY None. .SH HISTORIA SVr4. .SH "ZOBACZ TAKŻE" \fBendgrent\fP(3), \fBfgetgrent_r\fP(3), \fBfopen\fP(3), \fBgetgrent\fP(3), \fBgetgrgid\fP(3), \fBgetgrnam\fP(3), \fBputgrent\fP(3), \fBsetgrent\fP(3), \fBgroup\fP(5) .PP .SH TŁUMACZENIE Autorami polskiego tłumaczenia niniejszej strony podręcznika są: Adam Byrtek , Andrzej Krzysztofowicz i Robert Luberda . .PP Niniejsze tłumaczenie jest wolną dokumentacją. Bliższe informacje o warunkach licencji można uzyskać zapoznając się z .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License w wersji 3 .UE lub nowszej. Nie przyjmuje się ŻADNEJ ODPOWIEDZIALNOŚCI. .PP Błędy w tłumaczeniu strony podręcznika prosimy zgłaszać na adres listy dyskusyjnej .MT manpages-pl-list@lists.sourceforge.net .ME .