diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:43:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:43:11 +0000 |
commit | fc22b3d6507c6745911b9dfcc68f1e665ae13dbc (patch) | |
tree | ce1e3bce06471410239a6f41282e328770aa404a /po/ro/man3/getpwent_r.3.po | |
parent | Initial commit. (diff) | |
download | manpages-l10n-fc22b3d6507c6745911b9dfcc68f1e665ae13dbc.tar.xz manpages-l10n-fc22b3d6507c6745911b9dfcc68f1e665ae13dbc.zip |
Adding upstream version 4.22.0.upstream/4.22.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'po/ro/man3/getpwent_r.3.po')
-rw-r--r-- | po/ro/man3/getpwent_r.3.po | 691 |
1 files changed, 691 insertions, 0 deletions
diff --git a/po/ro/man3/getpwent_r.3.po b/po/ro/man3/getpwent_r.3.po new file mode 100644 index 00000000..acb2fef5 --- /dev/null +++ b/po/ro/man3/getpwent_r.3.po @@ -0,0 +1,691 @@ +# Romanian translation of manpages +# This file is distributed under the same license as the manpages-l10n package. +# Copyright © of this file: +# Remus-Gabriel Chelu <remusgabriel.chelu@disroot.org>, 2024. +msgid "" +msgstr "" +"Project-Id-Version: manpages-l10n 4.21.0\n" +"POT-Creation-Date: 2024-03-01 16:57+0100\n" +"PO-Revision-Date: 2024-02-25 09:30+0100\n" +"Last-Translator: Remus-Gabriel Chelu <remusgabriel.chelu@disroot.org>\n" +"Language-Team: Romanian <translation-team-ro@lists.sourceforge.net>\n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " +"20)) ? 1 : 2;\n" +"X-Generator: Poedit 3.2.2\n" + +#. type: TH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "getpwent_r" +msgstr "getpwent_r" + +#. type: TH +#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "2023-10-31" +msgstr "31 octombrie 2023" + +#. type: TH +#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "Linux man-pages 6.06" +msgstr "Pagini de manual de Linux 6.06" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "NAME" +msgstr "NUME" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "getpwent_r, fgetpwent_r - get passwd file entry reentrantly" +msgstr "" +"getpwent_r, fgetpwent_r - obține intrarea din fișierul passwd în mod " +"reentrant" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "LIBRARY" +msgstr "BIBLIOTECA" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Standard C library (I<libc>, I<-lc>)" +msgstr "Biblioteca C standard (I<libc>, I<-lc>)" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "SYNOPSIS" +msgstr "REZUMAT" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<#include E<lt>pwd.hE<gt>>\n" +msgstr "B<#include E<lt>pwd.hE<gt>>\n" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"B<int getpwent_r(struct passwd *restrict >I<pwbuf>B<,>\n" +"B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n" +"B< struct passwd **restrict >I<pwbufp>B<);>\n" +"B<int fgetpwent_r(FILE *restrict >I<stream>B<, struct passwd *restrict >I<pwbuf>B<,>\n" +"B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n" +"B< struct passwd **restrict >I<pwbufp>B<);>\n" +msgstr "" +"B<int getpwent_r(struct passwd *restrict >I<pwbuf>B<,>\n" +"B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n" +"B< struct passwd **restrict >I<pwbufp>B<);>\n" +"B<int fgetpwent_r(FILE *restrict >I<stream>B<, struct passwd *restrict >I<pwbuf>B<,>\n" +"B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n" +"B< struct passwd **restrict >I<pwbufp>B<);>\n" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" +msgstr "" +"Cerințe pentru macrocomenzi de testare a caracteristicilor pentru glibc " +"(consultați B<feature_test_macros>(7)):" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "B<getpwent_r>()," +msgstr "B<getpwent_r>()," + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +" Since glibc 2.19:\n" +" _DEFAULT_SOURCE\n" +" glibc 2.19 and earlier:\n" +" _BSD_SOURCE || _SVID_SOURCE\n" +msgstr "" +" Începând cu glibc 2.19:\n" +" _DEFAULT_SOURCE\n" +" glibc 2.19 și versiunile anterioare:\n" +" _BSD_SOURCE || _SVID_SOURCE\n" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "B<fgetpwent_r>():" +msgstr "B<fgetpwent_r>():" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +" Since glibc 2.19:\n" +" _DEFAULT_SOURCE\n" +" glibc 2.19 and earlier:\n" +" _SVID_SOURCE\n" +msgstr "" +" Începând cu glibc 2.19:\n" +" _DEFAULT_SOURCE\n" +" glibc 2.19 și versiunile anterioare:\n" +" _SVID_SOURCE\n" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "DESCRIPTION" +msgstr "DESCRIERE" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The functions B<getpwent_r>() and B<fgetpwent_r>() are the reentrant " +"versions of B<getpwent>(3) and B<fgetpwent>(3). The former reads the next " +"passwd entry from the stream initialized by B<setpwent>(3). The latter " +"reads the next passwd entry from I<stream>." +msgstr "" +"Funcțiile B<getpwent_r>() și B<fgetpwent_r>() sunt versiunile reentrante ale " +"B<getpwent>(3) și B<fgetpwent>(3). Prima citește următoarea intrare passwd " +"din fluxul inițializat de B<setpwent>(3). Cea de-a doua citește următoarea " +"intrare passwd din I<stream>." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "The I<passwd> structure is defined in I<E<lt>pwd.hE<gt>> as follows:" +msgstr "" +"Structura I<passwd> este definită în I<E<lt>pwd.hE<gt>> după cum urmează:" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"struct passwd {\n" +" char *pw_name; /* username */\n" +" char *pw_passwd; /* user password */\n" +" uid_t pw_uid; /* user ID */\n" +" gid_t pw_gid; /* group ID */\n" +" char *pw_gecos; /* user information */\n" +" char *pw_dir; /* home directory */\n" +" char *pw_shell; /* shell program */\n" +"};\n" +msgstr "" +"struct passwd {\n" +" char *pw_name; /* nume utilizator */\n" +" char *pw_passwd; /* parolă utilizator */\n" +" uid_t pw_uid; /* ID utilizator */\n" +" gid_t pw_gid; /* ID grup */\n" +" char *pw_gecos; /* informații utilizator */\n" +" char *pw_dir; /* directorul personal */\n" +" char *pw_shell; /* program shell */\n" +"};\n" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"For more information about the fields of this structure, see B<passwd>(5)." +msgstr "" +"Pentru mai multe informații despre câmpurile acestei structuri, consultați " +"B<passwd>(5)." + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The nonreentrant functions return a pointer to static storage, where this " +"static storage contains further pointers to user name, password, gecos " +"field, home directory and shell. The reentrant functions described here " +"return all of that in caller-provided buffers. First of all there is the " +"buffer I<pwbuf> that can hold a I<struct passwd>. And next the buffer " +"I<buf> of size I<buflen> that can hold additional strings. The result of " +"these functions, the I<struct passwd> read from the stream, is stored in the " +"provided buffer I<*pwbuf>, and a pointer to this I<struct passwd> is " +"returned in I<*pwbufp>." +msgstr "" +"Funcțiile nereentrante returnează un indicator către o memorie statică, unde " +"această memorie statică conține alți indicatori pentru numele de utilizator, " +"parola, câmpul gecos, directorul principal și shell-ul. Funcțiile " +"reentrante descrise aici returnează toate acestea în memorii tampon " +"furnizate de apelant. În primul rând, există memoria tampon I<pwbuf> care " +"poate conține o I<struct passwd>. Și apoi memoria tampon I<buf> de " +"dimensiune I<buflen> care poate conține șiruri de caractere suplimentare. " +"Rezultatul acestor funcții, I<struct passwd> citit din flux, este stocat în " +"memoria tampon furnizată I<*pwbuf>, iar un indicator la această I<struct " +"passwd> este returnat în I<*pwbufp>." + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "RETURN VALUE" +msgstr "VALOAREA RETURNATĂ" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"On success, these functions return 0 and I<*pwbufp> is a pointer to the " +"I<struct passwd>. On error, these functions return an error value and " +"I<*pwbufp> is NULL." +msgstr "" +"În caz de succes, aceste funcții returnează 0, iar I<*pwbufp> este un " +"indicator la I<struct passwd>. În caz de eroare, aceste funcții returnează o " +"valoare de eroare, iar I<*pwbufp> este NULL." + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "ERRORS" +msgstr "ERORI-IEȘIRE" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<ENOENT>" +msgstr "B<ENOENT>" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "No more entries." +msgstr "Nu mai există alte intrări." + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<ERANGE>" +msgstr "B<ERANGE>" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Insufficient buffer space supplied. Try again with larger buffer." +msgstr "" +"Spațiu de memorie tampon furnizat insuficient. Încercați din nou cu o " +"memorie tampon mai mare." + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "ATTRIBUTES" +msgstr "ATRIBUTE" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"For an explanation of the terms used in this section, see B<attributes>(7)." +msgstr "" +"Pentru o explicație a termenilor folosiți în această secțiune, a se vedea " +"B<attributes>(7)." + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Interface" +msgstr "Interfață" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Attribute" +msgstr "Atribut" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Value" +msgstr "Valoare" + +#. type: tbl table +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid ".na\n" +msgstr ".na\n" + +#. type: tbl table +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid ".nh\n" +msgstr ".nh\n" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<getpwent_r>()" +msgstr "B<getpwent_r>()" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Thread safety" +msgstr "Siguranța firelor" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "MT-Unsafe race:pwent locale" +msgstr "MT-Unsafe race:pwent locale" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<fgetpwent_r>()" +msgstr "B<fgetpwent_r>()" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "MT-Safe" +msgstr "MT-Safe" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"In the above table, I<pwent> in I<race:pwent> signifies that if any of the " +"functions B<setpwent>(), B<getpwent>(), B<endpwent>(), or B<getpwent_r>() " +"are used in parallel in different threads of a program, then data races " +"could occur." +msgstr "" +"În tabelul de mai sus, I<pwent> din I<race:pwent> semnifică faptul că, dacă " +"oricare dintre funcțiile B<setpwent>(), B<getpwent>(), B<endpwent>() sau " +"B<getpwent_r>() sunt utilizate în paralel în diferite fire de execuție ale " +"unui program, atunci pot apărea competiții de date." + +#. type: SH +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "VERSIONS" +msgstr "VERSIUNI" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +msgid "Other systems use the prototype" +msgstr "Alte sisteme utilizează prototipul" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"struct passwd *\n" +"getpwent_r(struct passwd *pwd, char *buf, int buflen);\n" +msgstr "" +"struct passwd *\n" +"getpwent_r(struct passwd *pwd, char *buf, int buflen);\n" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "or, better," +msgstr "sau, mai bine zis," + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"int\n" +"getpwent_r(struct passwd *pwd, char *buf, int buflen,\n" +" FILE **pw_fp);\n" +msgstr "" +"int\n" +"getpwent_r(struct passwd *pwd, char *buf, int buflen,\n" +" FILE **pw_fp);\n" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "STANDARDS" +msgstr "STANDARDE" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +msgid "None." +msgstr "Niciunul." + +#. type: SH +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "HISTORY" +msgstr "ISTORIC" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"These functions are done in a style resembling the POSIX version of " +"functions like B<getpwnam_r>(3)." +msgstr "" +"Aceste funcții sunt realizate într-un stil asemănător cu versiunea POSIX a " +"unor funcții precum B<getpwnam_r>(3)." + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "NOTES" +msgstr "NOTE" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The function B<getpwent_r>() is not really reentrant since it shares the " +"reading position in the stream with all other threads." +msgstr "" +"Funcția B<getpwent_r>() nu este cu adevărat reentrantă, deoarece împarte " +"poziția de citire în flux cu toate celelalte fire de execuție." + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "EXAMPLES" +msgstr "EXEMPLE" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid "" +"#define _GNU_SOURCE\n" +"#include E<lt>pwd.hE<gt>\n" +"#include E<lt>stdint.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +"\\&\n" +"#define BUFLEN 4096\n" +"\\&\n" +"int\n" +"main(void)\n" +"{\n" +" struct passwd pw;\n" +" struct passwd *pwp;\n" +" char buf[BUFLEN];\n" +" int i;\n" +"\\&\n" +" setpwent();\n" +" while (1) {\n" +" i = getpwent_r(&pw, buf, sizeof(buf), &pwp);\n" +" if (i)\n" +" break;\n" +" printf(\"%s (%jd)\\etHOME %s\\etSHELL %s\\en\", pwp-E<gt>pw_name,\n" +" (intmax_t) pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n" +" }\n" +" endpwent();\n" +" exit(EXIT_SUCCESS);\n" +"}\n" +msgstr "" +"#define _GNU_SOURCE\n" +"#include E<lt>pwd.hE<gt>\n" +"#include E<lt>stdint.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +"\\&\n" +"#define BUFLEN 4096\n" +"\\&\n" +"int\n" +"main(void)\n" +"{\n" +" struct passwd pw;\n" +" struct passwd *pwp;\n" +" char buf[BUFLEN];\n" +" int i;\n" +"\\&\n" +" setpwent();\n" +" while (1) {\n" +" i = getpwent_r(&pw, buf, sizeof(buf), &pwp);\n" +" if (i)\n" +" break;\n" +" printf(\"%s (%jd)\\etHOME %s\\etSHELL %s\\en\", pwp-E<gt>pw_name,\n" +" (intmax_t) pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n" +" }\n" +" endpwent();\n" +" exit(EXIT_SUCCESS);\n" +"}\n" + +#. perhaps add error checking - should use strerror_r +#. #include <errno.h> +#. #include <stdlib.h> +#. if (i) { +#. if (i == ENOENT) +#. break; +#. printf("getpwent_r: %s", strerror(i)); +#. exit(EXIT_SUCCESS); +#. } +#. SRC END +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "SEE ALSO" +msgstr "CONSULTAȚI ȘI" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"B<fgetpwent>(3), B<getpw>(3), B<getpwent>(3), B<getpwnam>(3), " +"B<getpwuid>(3), B<putpwent>(3), B<passwd>(5)" +msgstr "" +"B<fgetpwent>(3), B<getpw>(3), B<getpwent>(3), B<getpwnam>(3), " +"B<getpwuid>(3), B<putpwent>(3), B<passwd>(5)" + +#. type: TH +#: debian-bookworm +#, no-wrap +msgid "2023-02-05" +msgstr "5 februarie 2023" + +#. type: TH +#: debian-bookworm +#, no-wrap +msgid "Linux man-pages 6.03" +msgstr "Pagini de manual de Linux 6.03" + +#. type: Plain text +#: debian-bookworm +msgid "" +"These functions are GNU extensions, done in a style resembling the POSIX " +"version of functions like B<getpwnam_r>(3). Other systems use the prototype" +msgstr "" +"Aceste funcții sunt extensii GNU, realizate într-un stil asemănător cu " +"versiunea POSIX a unor funcții precum B<getpwnam_r>(3). Alte sisteme " +"utilizează prototipul" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +"#define _GNU_SOURCE\n" +"#include E<lt>pwd.hE<gt>\n" +"#include E<lt>stdint.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +msgstr "" +"#define _GNU_SOURCE\n" +"#include E<lt>pwd.hE<gt>\n" +"#include E<lt>stdint.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "#define BUFLEN 4096\n" +msgstr "#define BUFLEN 4096\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +"int\n" +"main(void)\n" +"{\n" +" struct passwd pw;\n" +" struct passwd *pwp;\n" +" char buf[BUFLEN];\n" +" int i;\n" +msgstr "" +"int\n" +"main(void)\n" +"{\n" +" struct passwd pw;\n" +" struct passwd *pwp;\n" +" char buf[BUFLEN];\n" +" int i;\n" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" setpwent();\n" +" while (1) {\n" +" i = getpwent_r(&pw, buf, sizeof(buf), &pwp);\n" +" if (i)\n" +" break;\n" +" printf(\"%s (%jd)\\etHOME %s\\etSHELL %s\\en\", pwp-E<gt>pw_name,\n" +" (intmax_t) pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n" +" }\n" +" endpwent();\n" +" exit(EXIT_SUCCESS);\n" +"}\n" +msgstr "" +" setpwent();\n" +" while (1) {\n" +" i = getpwent_r(&pw, buf, sizeof(buf), &pwp);\n" +" if (i)\n" +" break;\n" +" printf(\"%s (%jd)\\etHOME %s\\etSHELL %s\\en\", pwp-E<gt>pw_name,\n" +" (intmax_t) pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n" +" }\n" +" endpwent();\n" +" exit(EXIT_SUCCESS);\n" +"}\n" + +#. type: TH +#: debian-unstable opensuse-tumbleweed +#, no-wrap +msgid "2023-07-20" +msgstr "20 iulie 2023" + +#. type: TH +#: debian-unstable opensuse-tumbleweed +#, no-wrap +msgid "Linux man-pages 6.05.01" +msgstr "Pagini de manual de Linux 6.05.01" + +#. type: TH +#: opensuse-leap-15-6 +#, no-wrap +msgid "2023-03-30" +msgstr "30 martie 2023" + +#. type: TH +#: opensuse-leap-15-6 +#, no-wrap +msgid "Linux man-pages 6.04" +msgstr "Pagini de manual de Linux 6.04" |