| 1 |
# Polish translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Przemek Borys <[email protected]>, 1999. |
| 5 |
# Andrzej Krzysztofowicz <[email protected]>, 2001. |
| 6 |
# Robert Luberda <[email protected]>, 2017, 2019. |
| 7 |
# Michał Kułach <[email protected]>, 2024, 2025. |
| 8 |
msgid "" |
| 9 |
msgstr "" |
| 10 |
"Project-Id-Version: manpages-pl\n" |
| 11 |
"POT-Creation-Date: 2026-06-05 06:25+0200\n" |
| 12 |
"PO-Revision-Date: 2025-11-30 12:16+0100\n" |
| 13 |
"Last-Translator: Michał Kułach <[email protected]>\n" |
| 14 |
"Language-Team: Polish <[email protected]>\n" |
| 15 |
"Language: pl\n" |
| 16 |
"MIME-Version: 1.0\n" |
| 17 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 18 |
"Content-Transfer-Encoding: 8bit\n" |
| 19 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " |
| 20 |
"|| n%100>=20) ? 1 : 2);\n" |
| 21 |
"X-Generator: Lokalize 25.04.0\n" |
| 22 |
|
| 23 |
#. type: TH |
| 24 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 25 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 26 |
#, no-wrap |
| 27 |
msgid "getpwnam" |
| 28 |
msgstr "getpwnam" |
| 29 |
|
| 30 |
#. type: TH |
| 31 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 32 |
#: opensuse-tumbleweed |
| 33 |
#, no-wrap |
| 34 |
msgid "2026-02-08" |
| 35 |
msgstr "8 lutego 2026 r." |
| 36 |
|
| 37 |
#. type: TH |
| 38 |
#: archlinux debian-unstable |
| 39 |
#, no-wrap |
| 40 |
msgid "Linux man-pages 6.18" |
| 41 |
msgstr "Linux man-pages 6.18" |
| 42 |
|
| 43 |
#. type: SH |
| 44 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 45 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 46 |
#, no-wrap |
| 47 |
msgid "NAME" |
| 48 |
msgstr "NAZWA" |
| 49 |
|
| 50 |
#. type: Plain text |
| 51 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 52 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 53 |
msgid "getpwnam, getpwnam_r, getpwuid, getpwuid_r - get password file entry" |
| 54 |
msgstr "" |
| 55 |
"getpwnam, getpwnam_r, getpwuid, getpwuid_r - odczytuje wpis z pliku hasel" |
| 56 |
|
| 57 |
#. type: SH |
| 58 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 59 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 60 |
#, no-wrap |
| 61 |
msgid "LIBRARY" |
| 62 |
msgstr "BIBLIOTEKA" |
| 63 |
|
| 64 |
#. type: Plain text |
| 65 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 66 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 67 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 68 |
msgstr "Standardowa biblioteka C (I<libc>,\\ I<-lc>)" |
| 69 |
|
| 70 |
#. type: SH |
| 71 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 72 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 73 |
#, no-wrap |
| 74 |
msgid "SYNOPSIS" |
| 75 |
msgstr "SKŁADNIA" |
| 76 |
|
| 77 |
#. type: Plain text |
| 78 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 79 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 80 |
#, no-wrap |
| 81 |
msgid "" |
| 82 |
"B<#include E<lt>sys/types.hE<gt>>\n" |
| 83 |
"B<#include E<lt>pwd.hE<gt>>\n" |
| 84 |
msgstr "" |
| 85 |
"B<#include E<lt>sys/types.hE<gt>>\n" |
| 86 |
"B<#include E<lt>pwd.hE<gt>>\n" |
| 87 |
|
| 88 |
#. type: Plain text |
| 89 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 90 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 91 |
#, no-wrap |
| 92 |
msgid "" |
| 93 |
"B<struct passwd *getpwnam(const char *>I<name>B<);>\n" |
| 94 |
"B<struct passwd *getpwuid(uid_t >I<uid>B<);>\n" |
| 95 |
msgstr "" |
| 96 |
"B<struct passwd *getpwnam(const char *>I<name>B<);>\n" |
| 97 |
"B<struct passwd *getpwuid(uid_t >I<uid>B<);>\n" |
| 98 |
|
| 99 |
#. type: Plain text |
| 100 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 101 |
#: opensuse-tumbleweed |
| 102 |
#, no-wrap |
| 103 |
msgid "" |
| 104 |
"B<int getpwnam_r(>size_t size;\n" |
| 105 |
"B< const char *restrict >I<name>B<,>\n" |
| 106 |
"B< struct passwd *restrict >I<pwd>B<,>\n" |
| 107 |
"B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n" |
| 108 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 109 |
"B<int getpwuid_r(>size_t size;\n" |
| 110 |
"B< uid_t >I<uid>B<,>\n" |
| 111 |
"B< struct passwd *restrict >I<pwd>B<,>\n" |
| 112 |
"B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n" |
| 113 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 114 |
msgstr "" |
| 115 |
"B<int getpwnam_r(>size_t size;\n" |
| 116 |
"B< const char *restrict >I<name>B<,>\n" |
| 117 |
"B< struct passwd *restrict >I<pwd>B<,>\n" |
| 118 |
"B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n" |
| 119 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 120 |
"B<int getpwuid_r(>size_t size;\n" |
| 121 |
"B< uid_t >I<uid>B<,>\n" |
| 122 |
"B< struct passwd *restrict >I<pwd>B<,>\n" |
| 123 |
"B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n" |
| 124 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 125 |
|
| 126 |
#. type: Plain text |
| 127 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 128 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 129 |
msgid "" |
| 130 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 131 |
msgstr "" |
| 132 |
"Wymagane ustawienia makr biblioteki glibc (patrz B<feature_test_macros>(7)):" |
| 133 |
|
| 134 |
#. type: Plain text |
| 135 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 136 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 137 |
msgid "B<getpwnam_r>(), B<getpwuid_r>():" |
| 138 |
msgstr "B<getpwnam_r>(), B<getpwuid_r>():" |
| 139 |
|
| 140 |
#. type: Plain text |
| 141 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 142 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 143 |
#, no-wrap |
| 144 |
msgid "" |
| 145 |
" _POSIX_C_SOURCE\n" |
| 146 |
" || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n" |
| 147 |
msgstr "" |
| 148 |
" _POSIX_C_SOURCE\n" |
| 149 |
" || /* glibc w wersji E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n" |
| 150 |
|
| 151 |
#. type: SH |
| 152 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 153 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 154 |
#, no-wrap |
| 155 |
msgid "DESCRIPTION" |
| 156 |
msgstr "OPIS" |
| 157 |
|
| 158 |
#. type: Plain text |
| 159 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 160 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 161 |
msgid "" |
| 162 |
"The B<getpwnam>() function returns a pointer to a structure containing the " |
| 163 |
"broken-out fields of the record in the password database (e.g., the local " |
| 164 |
"password file I</etc/passwd>, NIS, and LDAP) that matches the username " |
| 165 |
"I<name>." |
| 166 |
msgstr "" |
| 167 |
"Funkcja B<getpwnam>() zwraca wskaźnik do struktury, zawierającej pola " |
| 168 |
"powstałe z rozłożenia tego rekordu z bazy haseł (na przykład z lokalnego " |
| 169 |
"pliku haseł I</etc/passwd> albo z NIS-a lub LDAP-a), który odpowiada " |
| 170 |
"użytkownikowi o nazwie I<name>." |
| 171 |
|
| 172 |
#. type: Plain text |
| 173 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 174 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 175 |
msgid "" |
| 176 |
"The B<getpwuid>() function returns a pointer to a structure containing the " |
| 177 |
"broken-out fields of the record in the password database that matches the " |
| 178 |
"user ID I<uid>." |
| 179 |
msgstr "" |
| 180 |
"Funkcja B<getpwuid>() zwraca wskaźnik do struktury, zawierającej pola " |
| 181 |
"powstałe z rozłożenia tego rekordu bazy danych haseł, który odpowiada " |
| 182 |
"użytkownikowi o identyfikatorze I<uid>." |
| 183 |
|
| 184 |
#. type: Plain text |
| 185 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 186 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 187 |
msgid "The I<passwd> structure is defined in I<E<lt>pwd.hE<gt>> as follows:" |
| 188 |
msgstr "" |
| 189 |
"Struktura I<passwd> jest następująco zdefiniowana w pliku I<E<lt>pwd.hE<gt>>:" |
| 190 |
|
| 191 |
#. type: Plain text |
| 192 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 193 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 194 |
#, no-wrap |
| 195 |
msgid "" |
| 196 |
"struct passwd {\n" |
| 197 |
" char *pw_name; /* username */\n" |
| 198 |
" char *pw_passwd; /* user password */\n" |
| 199 |
" uid_t pw_uid; /* user ID */\n" |
| 200 |
" gid_t pw_gid; /* group ID */\n" |
| 201 |
" char *pw_gecos; /* user information */\n" |
| 202 |
" char *pw_dir; /* home directory */\n" |
| 203 |
" char *pw_shell; /* shell program */\n" |
| 204 |
"};\n" |
| 205 |
msgstr "" |
| 206 |
"struct passwd {\n" |
| 207 |
" char *pw_name; /* nazwa użytkownika */\n" |
| 208 |
" char *pw_passwd; /* hasło użytkownika */\n" |
| 209 |
" uid_t pw_uid; /* identyfikator użytkownika */\n" |
| 210 |
" gid_t pw_gid; /* identyfikator grupy */\n" |
| 211 |
" char *pw_gecos; /* informacje o użytkowniku */\n" |
| 212 |
" char *pw_dir; /* katalog domowy */\n" |
| 213 |
" char *pw_shell; /* program powłoki */\n" |
| 214 |
"};\n" |
| 215 |
|
| 216 |
#. type: Plain text |
| 217 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 218 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 219 |
msgid "See B<passwd>(5) for more information about these fields." |
| 220 |
msgstr "" |
| 221 |
"Więcej informacji tych polach można znaleźć w podręczniku B<passwd>(5)." |
| 222 |
|
| 223 |
#. type: Plain text |
| 224 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 225 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 226 |
msgid "" |
| 227 |
"The B<getpwnam_r>() and B<getpwuid_r>() functions obtain the same " |
| 228 |
"information as B<getpwnam>() and B<getpwuid>(), but store the retrieved " |
| 229 |
"I<passwd> structure in the space pointed to by I<pwd>. The string fields " |
| 230 |
"pointed to by the members of the I<passwd> structure are stored in the " |
| 231 |
"buffer I<buf> of size I<size>. A pointer to the result (in case of success) " |
| 232 |
"or NULL (in case no entry was found or an error occurred) is stored in " |
| 233 |
"I<*result>." |
| 234 |
msgstr "" |
| 235 |
"Funkcje B<getpwnam_r>() i B<getpwuid_r>() zwracają te same informacje, co " |
| 236 |
"B<getpwnam>() i B<getpwuid>(), ale zapisują pobraną strukturę I<passwd> w " |
| 237 |
"przestrzeni wskazywanej przez argument I<pwd>. Pola tekstowe, na które " |
| 238 |
"wskazują członkowie struktury I<passwd> są przekazywane w buforze I<buf> o " |
| 239 |
"rozmiarze I<size>. W zmiennej I<*result> jest zapisywany wskaźnik do wyniku " |
| 240 |
"funkcji (w przypadku powodzenia) lub NULL (jeśli nie znaleziono wpisu w " |
| 241 |
"bazie lub gdy wystąpił błąd)." |
| 242 |
|
| 243 |
#. type: Plain text |
| 244 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 245 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 246 |
msgid "The call" |
| 247 |
msgstr "Wywołanie" |
| 248 |
|
| 249 |
#. type: Plain text |
| 250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 251 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 252 |
#, no-wrap |
| 253 |
msgid "sysconf(_SC_GETPW_R_SIZE_MAX)\n" |
| 254 |
msgstr "sysconf(_SC_GETPW_R_SIZE_MAX)\n" |
| 255 |
|
| 256 |
#. type: Plain text |
| 257 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 258 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 259 |
msgid "" |
| 260 |
"returns either -1, without changing I<errno>, or an initial suggested size " |
| 261 |
"for I<buf>. (If this size is too small, the call fails with B<ERANGE>, in " |
| 262 |
"which case the caller can retry with a larger buffer.)" |
| 263 |
msgstr "" |
| 264 |
"zwraca albo -1, bez zmieniania wartości I<errno>, albo początkowy sugerowany " |
| 265 |
"rozmiar dla bufora I<buf> (jeśli ten rozmiar jest za mały, to opisywane " |
| 266 |
"funkcje zwrócą błąd B<ERANGE> - wtedy proces wywołujący powinien spróbować " |
| 267 |
"ponownie z większym buforem)." |
| 268 |
|
| 269 |
#. type: SH |
| 270 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 271 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 272 |
#, no-wrap |
| 273 |
msgid "RETURN VALUE" |
| 274 |
msgstr "WARTOŚĆ ZWRACANA" |
| 275 |
|
| 276 |
#. type: Plain text |
| 277 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 278 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 279 |
msgid "" |
| 280 |
"The B<getpwnam>() and B<getpwuid>() functions return a pointer to a " |
| 281 |
"I<passwd> structure, or NULL if the matching entry is not found or an error " |
| 282 |
"occurs. If an error occurs, I<errno> is set to indicate the error. If one " |
| 283 |
"wants to check I<errno> after the call, it should be set to zero before the " |
| 284 |
"call." |
| 285 |
msgstr "" |
| 286 |
"Funkcje B<getpwnam>() i B<getpwuid>() zwracają wskaźnik do struktury " |
| 287 |
"I<passwd> albo NULL, jeśli nie znaleziono pasującego wpisu lub gdy wystąpił " |
| 288 |
"błąd. W przypadku wystąpienia błędu ustawiają I<errno>, wskazując błąd. Aby " |
| 289 |
"móc sprawdzić wartość I<errno> po wywołaniu tych funkcji, należy ją przed " |
| 290 |
"wywołaniem ustawić na zero." |
| 291 |
|
| 292 |
#. type: Plain text |
| 293 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 294 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 295 |
msgid "" |
| 296 |
"The return value may point to a static area, and may be overwritten by " |
| 297 |
"subsequent calls to B<getpwent>(3), B<getpwnam>(), or B<getpwuid>(). (Do " |
| 298 |
"not pass the returned pointer to B<free>(3).)" |
| 299 |
msgstr "" |
| 300 |
"Zwrócona wartość może wskazywać na statyczny obszar, który może być " |
| 301 |
"nadpisany przez kolejne wywołania B<getpwent>(3), B<getpwnam>() lub " |
| 302 |
"B<getpwuid>() (zwróconego wskaźnika nie należy przekazywać do funkcji " |
| 303 |
"B<free>(3))." |
| 304 |
|
| 305 |
#. type: Plain text |
| 306 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 307 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 308 |
msgid "" |
| 309 |
"On success, B<getpwnam_r>() and B<getpwuid_r>() return zero, and set " |
| 310 |
"I<*result> to I<pwd>. If no matching password record was found, these " |
| 311 |
"functions return 0 and store NULL in I<*result>. In case of error, an error " |
| 312 |
"number is returned, and NULL is stored in I<*result>." |
| 313 |
msgstr "" |
| 314 |
"B<getpwnam_r>() i B<getpwuid_r>(), jeśli się powiodą, to zwracają zero i " |
| 315 |
"ustawiają I<*result> na I<pwd>. Jeśli nie znaleziono pasującego rekordu w " |
| 316 |
"bazie haseł, to funkcje zwracają 0 i wpisują NULL do I<*result>. W przypadku " |
| 317 |
"błędu zawracany jest numer błędu i I<*result> jest ustawiany na NULL." |
| 318 |
|
| 319 |
#. type: SH |
| 320 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 321 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 322 |
#, no-wrap |
| 323 |
msgid "ERRORS" |
| 324 |
msgstr "BŁĘDY" |
| 325 |
|
| 326 |
#. type: TP |
| 327 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 328 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 329 |
#, no-wrap |
| 330 |
msgid "B<0> or B<ENOENT> or B<ESRCH> or B<EBADF> or B<EPERM> or ..." |
| 331 |
msgstr "B<0> lub B<ENOENT>, lub B<ESRCH>, lub B<EBADF>, lub B<EPERM>, lub ..." |
| 332 |
|
| 333 |
#. type: Plain text |
| 334 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 335 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 336 |
msgid "The given I<name> or I<uid> was not found." |
| 337 |
msgstr "Podany argument I<name> lub I<uid> nie został znaleziony." |
| 338 |
|
| 339 |
#. type: TP |
| 340 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 341 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 342 |
#, no-wrap |
| 343 |
msgid "B<EINTR>" |
| 344 |
msgstr "B<EINTR>" |
| 345 |
|
| 346 |
#. type: Plain text |
| 347 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 348 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 349 |
msgid "A signal was caught; see B<signal>(7)." |
| 350 |
msgstr "Przechwycono sygnał, patrz B<signal>(7)." |
| 351 |
|
| 352 |
#. type: TP |
| 353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 354 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 355 |
#, no-wrap |
| 356 |
msgid "B<EIO>" |
| 357 |
msgstr "B<EIO>" |
| 358 |
|
| 359 |
#. type: Plain text |
| 360 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 361 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 362 |
msgid "I/O error." |
| 363 |
msgstr "Błąd wejścia/wyjścia." |
| 364 |
|
| 365 |
#. type: TP |
| 366 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 367 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 368 |
#, no-wrap |
| 369 |
msgid "B<EMFILE>" |
| 370 |
msgstr "B<EMFILE>" |
| 371 |
|
| 372 |
#. type: Plain text |
| 373 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 374 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 375 |
msgid "" |
| 376 |
"The per-process limit on the number of open file descriptors has been " |
| 377 |
"reached." |
| 378 |
msgstr "" |
| 379 |
"Zostało osiągnięte ograniczenie na liczbę otwartych deskryptorów plików dla " |
| 380 |
"procesu." |
| 381 |
|
| 382 |
#. type: TP |
| 383 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 384 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 385 |
#, no-wrap |
| 386 |
msgid "B<ENFILE>" |
| 387 |
msgstr "B<ENFILE>" |
| 388 |
|
| 389 |
#. type: Plain text |
| 390 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 391 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 392 |
msgid "" |
| 393 |
"The system-wide limit on the total number of open files has been reached." |
| 394 |
msgstr "" |
| 395 |
"Zostało osiągnięte systemowe ograniczenie na całkowitą liczbę otwartych " |
| 396 |
"plików." |
| 397 |
|
| 398 |
#. type: TP |
| 399 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 400 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 401 |
#, no-wrap |
| 402 |
msgid "B<ENOMEM>" |
| 403 |
msgstr "B<ENOMEM>" |
| 404 |
|
| 405 |
#. #-#-#-#-# archlinux: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 406 |
#. not in POSIX |
| 407 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 408 |
#. type: Plain text |
| 409 |
#. #-#-#-#-# debian-trixie: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 410 |
#. not in POSIX |
| 411 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 412 |
#. type: Plain text |
| 413 |
#. #-#-#-#-# debian-unstable: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 414 |
#. not in POSIX |
| 415 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 416 |
#. type: Plain text |
| 417 |
#. #-#-#-#-# fedora-44: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 418 |
#. not in POSIX |
| 419 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 420 |
#. type: Plain text |
| 421 |
#. #-#-#-#-# fedora-rawhide: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 422 |
#. not in POSIX |
| 423 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 424 |
#. type: Plain text |
| 425 |
#. #-#-#-#-# mageia-cauldron: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 426 |
#. not in POSIX |
| 427 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 428 |
#. type: Plain text |
| 429 |
#. #-#-#-#-# opensuse-leap-16-1: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 430 |
#. not in POSIX |
| 431 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 432 |
#. type: Plain text |
| 433 |
#. #-#-#-#-# opensuse-tumbleweed: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 434 |
#. not in POSIX |
| 435 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 436 |
#. type: Plain text |
| 437 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 438 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 439 |
msgid "Insufficient memory to allocate I<passwd> structure." |
| 440 |
msgstr "Zabrakło pamięci na przydzielenie struktury I<passwd>." |
| 441 |
|
| 442 |
#. type: TP |
| 443 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 444 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 445 |
#, no-wrap |
| 446 |
msgid "B<ERANGE>" |
| 447 |
msgstr "B<ERANGE>" |
| 448 |
|
| 449 |
#. type: Plain text |
| 450 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 451 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 452 |
msgid "Insufficient buffer space supplied." |
| 453 |
msgstr "Przekazano niewystarczający bufor." |
| 454 |
|
| 455 |
#. type: SH |
| 456 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 457 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 458 |
#, no-wrap |
| 459 |
msgid "FILES" |
| 460 |
msgstr "PLIKI" |
| 461 |
|
| 462 |
#. type: TP |
| 463 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 464 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 465 |
#, no-wrap |
| 466 |
msgid "I</etc/passwd>" |
| 467 |
msgstr "I</etc/passwd>" |
| 468 |
|
| 469 |
#. type: Plain text |
| 470 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 471 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 472 |
msgid "local password database file" |
| 473 |
msgstr "lokalny plik bazy z hasłami" |
| 474 |
|
| 475 |
#. type: SH |
| 476 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 477 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 478 |
#, no-wrap |
| 479 |
msgid "ATTRIBUTES" |
| 480 |
msgstr "ATRYBUTY" |
| 481 |
|
| 482 |
#. type: Plain text |
| 483 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 484 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 485 |
msgid "" |
| 486 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 487 |
msgstr "" |
| 488 |
"Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku " |
| 489 |
"B<attributes>(7)." |
| 490 |
|
| 491 |
#. type: tbl table |
| 492 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 493 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 494 |
#, no-wrap |
| 495 |
msgid "Interface" |
| 496 |
msgstr "Interfejs" |
| 497 |
|
| 498 |
#. type: tbl table |
| 499 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 500 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 501 |
#, no-wrap |
| 502 |
msgid "Attribute" |
| 503 |
msgstr "Atrybut" |
| 504 |
|
| 505 |
#. type: tbl table |
| 506 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 507 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 508 |
#, no-wrap |
| 509 |
msgid "Value" |
| 510 |
msgstr "Wartość" |
| 511 |
|
| 512 |
#. type: tbl table |
| 513 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 514 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 515 |
#, no-wrap |
| 516 |
msgid ".na\n" |
| 517 |
msgstr ".na\n" |
| 518 |
|
| 519 |
#. type: tbl table |
| 520 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 521 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 522 |
#, no-wrap |
| 523 |
msgid ".nh\n" |
| 524 |
msgstr ".nh\n" |
| 525 |
|
| 526 |
#. type: tbl table |
| 527 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 528 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 529 |
#, no-wrap |
| 530 |
msgid "B<getpwnam>()" |
| 531 |
msgstr "B<getpwnam>()" |
| 532 |
|
| 533 |
#. type: tbl table |
| 534 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 535 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 536 |
#, no-wrap |
| 537 |
msgid "Thread safety" |
| 538 |
msgstr "Bezpieczeństwo wątkowe" |
| 539 |
|
| 540 |
#. type: tbl table |
| 541 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 542 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 543 |
#, no-wrap |
| 544 |
msgid "MT-Unsafe race:pwnam locale" |
| 545 |
msgstr "MT-niebezpieczne race:pwnam locale" |
| 546 |
|
| 547 |
#. type: tbl table |
| 548 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 549 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 550 |
#, no-wrap |
| 551 |
msgid "B<getpwuid>()" |
| 552 |
msgstr "B<getpwuid>()" |
| 553 |
|
| 554 |
#. type: tbl table |
| 555 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 556 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 557 |
#, no-wrap |
| 558 |
msgid "MT-Unsafe race:pwuid locale" |
| 559 |
msgstr "MT-niebezpieczne race:pwuid locale" |
| 560 |
|
| 561 |
#. type: tbl table |
| 562 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 563 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 564 |
#, no-wrap |
| 565 |
msgid "" |
| 566 |
"B<getpwnam_r>(),\n" |
| 567 |
"B<getpwuid_r>()" |
| 568 |
msgstr "" |
| 569 |
"B<getpwnam_r>(),\n" |
| 570 |
"B<getpwuid_r>()" |
| 571 |
|
| 572 |
#. type: tbl table |
| 573 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 574 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 575 |
#, no-wrap |
| 576 |
msgid "MT-Safe locale" |
| 577 |
msgstr "MT-bezpieczne locale" |
| 578 |
|
| 579 |
#. type: SH |
| 580 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 581 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 582 |
#, no-wrap |
| 583 |
msgid "VERSIONS" |
| 584 |
msgstr "WERSJE" |
| 585 |
|
| 586 |
#. type: Plain text |
| 587 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 588 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 589 |
msgid "" |
| 590 |
"The I<pw_gecos> field is not specified in POSIX, but is present on most " |
| 591 |
"implementations." |
| 592 |
msgstr "" |
| 593 |
"Pole I<pw_gecos> nie jest wymienione w standardzie POSIX, ale większość " |
| 594 |
"implementacji je zawiera." |
| 595 |
|
| 596 |
#. type: SH |
| 597 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 598 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 599 |
#, no-wrap |
| 600 |
msgid "STANDARDS" |
| 601 |
msgstr "STANDARDY" |
| 602 |
|
| 603 |
#. type: Plain text |
| 604 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 605 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 606 |
msgid "POSIX.1-2008." |
| 607 |
msgstr "POSIX.1-2008." |
| 608 |
|
| 609 |
#. type: SH |
| 610 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 611 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 612 |
#, no-wrap |
| 613 |
msgid "HISTORY" |
| 614 |
msgstr "HISTORIA" |
| 615 |
|
| 616 |
#. type: Plain text |
| 617 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 618 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 619 |
msgid "POSIX.1-2001, SVr4, 4.3BSD." |
| 620 |
msgstr "POSIX.1-2001, SVr4, 4.3BSD." |
| 621 |
|
| 622 |
#. type: SH |
| 623 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 624 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 625 |
#, no-wrap |
| 626 |
msgid "NOTES" |
| 627 |
msgstr "UWAGI" |
| 628 |
|
| 629 |
#. more precisely: |
| 630 |
#. AIX 5.1 - gives ESRCH |
| 631 |
#. OSF1 4.0g - gives EWOULDBLOCK |
| 632 |
#. libc, glibc up to glibc 2.6, Irix 6.5 - give ENOENT |
| 633 |
#. since glibc 2.7 - give 0 |
| 634 |
#. FreeBSD 4.8, OpenBSD 3.2, NetBSD 1.6 - give EPERM |
| 635 |
#. SunOS 5.8 - gives EBADF |
| 636 |
#. Tru64 5.1b, HP-UX-11i, SunOS 5.7 - give 0 |
| 637 |
#. type: Plain text |
| 638 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 639 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 640 |
msgid "" |
| 641 |
"The formulation given above under \"RETURN VALUE\" is from POSIX.1-2001. It " |
| 642 |
"does not call \"not found\" an error, and hence does not specify what value " |
| 643 |
"I<errno> might have in this situation. But that makes it impossible to " |
| 644 |
"recognize errors. One might argue that according to POSIX I<errno> should " |
| 645 |
"be left unchanged if an entry is not found. Experiments on various UNIX-" |
| 646 |
"like systems show that lots of different values occur in this situation: 0, " |
| 647 |
"ENOENT, EBADF, ESRCH, EWOULDBLOCK, EPERM, and probably others." |
| 648 |
msgstr "" |
| 649 |
"Sformułowania podane w rozdziale \\[Bq]WARTOŚĆ ZWRACANA\\[rq] pochodzą ze " |
| 650 |
"standardu POSIX.1-2001. Nie uwzględnia on jednak sytuacji \\[Bq]nie " |
| 651 |
"znaleziono wpisu w bazie\\[rq] jako błąd i dlatego nie określa, jaką wartość " |
| 652 |
"powinno mieć I<errno> w takim przypadku. Jednakże uniemożliwia to " |
| 653 |
"rozpoznawanie błędów. Można by dowodzić, że zgodnie ze standardem POSIX " |
| 654 |
"I<errno> powinno pozostać niezmienione, jeśli nie znaleziono wpisu. " |
| 655 |
"Eksperymentalnie stwierdzono, że różne systemy uniksowe ustawiają różne " |
| 656 |
"wartości: 0, ENOENT, EBADF, ESRCH, EWOULDBLOCK, EPERM i być może jeszcze " |
| 657 |
"jakieś inne." |
| 658 |
|
| 659 |
#. type: Plain text |
| 660 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 661 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 662 |
msgid "" |
| 663 |
"The I<pw_dir> field contains the name of the initial working directory of " |
| 664 |
"the user. Login programs use the value of this field to initialize the " |
| 665 |
"B<HOME> environment variable for the login shell. An application that wants " |
| 666 |
"to determine its user's home directory should inspect the value of B<HOME> " |
| 667 |
"(rather than the value I<getpwuid(getuid())-E<gt>pw_dir>) since this allows " |
| 668 |
"the user to modify their notion of \"the home directory\" during a login " |
| 669 |
"session. To determine the (initial) home directory of another user, it is " |
| 670 |
"necessary to use I<getpwnam(\"username\")-E<gt>pw_dir> or similar." |
| 671 |
msgstr "" |
| 672 |
"Pole I<pw_dir> zawiera nazwę początkowego katalogu bieżącego użytkownika. " |
| 673 |
"Programy do logowania użytkowników używają wartości tego pola do " |
| 674 |
"zainicjowania zmiennej środowiskowej B<HOME> powłok zgłoszeniowych. " |
| 675 |
"Aplikacja, która chce określić katalog domowy użytkownika powinna sprawdzać " |
| 676 |
"wartość zmiennej B<HOME> (a nie wartość pola I<getpwuid(getuid())-" |
| 677 |
"E<gt>pw_dir>), ponieważ pozwala to użytkownikowi zmienić znaczenie \\" |
| 678 |
"[Bq]katalogu domowego\\[rq]. Aby określić katalog domowy innego użytkownika, " |
| 679 |
"należy użyć I<getpwnam(\"username\")-E<gt>pw_dir> lub czegoś podobnego." |
| 680 |
|
| 681 |
#. type: SH |
| 682 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 683 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 684 |
#, no-wrap |
| 685 |
msgid "EXAMPLES" |
| 686 |
msgstr "PRZYKŁADY" |
| 687 |
|
| 688 |
#. type: Plain text |
| 689 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 690 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 691 |
msgid "" |
| 692 |
"The program below demonstrates the use of B<getpwnam_r>() to find the full " |
| 693 |
"username and user ID for the username supplied as a command-line argument." |
| 694 |
msgstr "" |
| 695 |
"Poniższy program obrazuje użycie funkcji B<getpwnam_r>() do znalezienia " |
| 696 |
"pełnej nazwy i numerycznego identyfikatora użytkownika przekazanego w " |
| 697 |
"argumencie linii poleceń." |
| 698 |
|
| 699 |
#. type: Plain text |
| 700 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 701 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 702 |
#, no-wrap |
| 703 |
msgid "" |
| 704 |
"#include E<lt>errno.hE<gt>\n" |
| 705 |
"#include E<lt>pwd.hE<gt>\n" |
| 706 |
"#include E<lt>stdint.hE<gt>\n" |
| 707 |
"#include E<lt>stdio.hE<gt>\n" |
| 708 |
"#include E<lt>stdlib.hE<gt>\n" |
| 709 |
"#include E<lt>unistd.hE<gt>\n" |
| 710 |
"\\&\n" |
| 711 |
"int\n" |
| 712 |
"main(int argc, char *argv[])\n" |
| 713 |
"{\n" |
| 714 |
" struct passwd pwd;\n" |
| 715 |
" struct passwd *result;\n" |
| 716 |
" char *buf;\n" |
| 717 |
" long bufsize;\n" |
| 718 |
" int s;\n" |
| 719 |
"\\&\n" |
| 720 |
" if (argc != 2) {\n" |
| 721 |
" fprintf(stderr, \"Usage: %s username\\[rs]n\", argv[0]);\n" |
| 722 |
" exit(EXIT_FAILURE);\n" |
| 723 |
" }\n" |
| 724 |
"\\&\n" |
| 725 |
" bufsize = sysconf(_SC_GETPW_R_SIZE_MAX);\n" |
| 726 |
" if (bufsize == -1) /* Value was indeterminate */\n" |
| 727 |
" bufsize = 16384; /* Should be more than enough */\n" |
| 728 |
"\\&\n" |
| 729 |
" buf = malloc(bufsize);\n" |
| 730 |
" if (buf == NULL) {\n" |
| 731 |
" perror(\"malloc\");\n" |
| 732 |
" exit(EXIT_FAILURE);\n" |
| 733 |
" }\n" |
| 734 |
"\\&\n" |
| 735 |
" s = getpwnam_r(argv[1], &pwd, buf, bufsize, &result);\n" |
| 736 |
" if (result == NULL) {\n" |
| 737 |
" if (s == 0)\n" |
| 738 |
" printf(\"Not found\\[rs]n\");\n" |
| 739 |
" else {\n" |
| 740 |
" errno = s;\n" |
| 741 |
" perror(\"getpwnam_r\");\n" |
| 742 |
" }\n" |
| 743 |
" exit(EXIT_FAILURE);\n" |
| 744 |
" }\n" |
| 745 |
"\\&\n" |
| 746 |
" printf(\"Name: %s; UID: %jd\\[rs]n\", pwd.pw_gecos,\n" |
| 747 |
" (intmax_t) pwd.pw_uid);\n" |
| 748 |
" exit(EXIT_SUCCESS);\n" |
| 749 |
"}\n" |
| 750 |
msgstr "" |
| 751 |
"#include E<lt>errno.hE<gt>\n" |
| 752 |
"#include E<lt>pwd.hE<gt>\n" |
| 753 |
"#include E<lt>stdint.hE<gt>\n" |
| 754 |
"#include E<lt>stdio.hE<gt>\n" |
| 755 |
"#include E<lt>stdlib.hE<gt>\n" |
| 756 |
"#include E<lt>unistd.hE<gt>\n" |
| 757 |
"\\&\n" |
| 758 |
"int\n" |
| 759 |
"main(int argc, char *argv[])\n" |
| 760 |
"{\n" |
| 761 |
" struct passwd pwd;\n" |
| 762 |
" struct passwd *result;\n" |
| 763 |
" char *buf;\n" |
| 764 |
" long bufsize;\n" |
| 765 |
" int s;\n" |
| 766 |
"\\&\n" |
| 767 |
" if (argc != 2) {\n" |
| 768 |
" fprintf(stderr, \"Użycie: %s nazwa-użytkownika\\[rs]n\", argv[0]);\n" |
| 769 |
" exit(EXIT_FAILURE);\n" |
| 770 |
" }\n" |
| 771 |
"\\&\n" |
| 772 |
" bufsize = sysconf(_SC_GETPW_R_SIZE_MAX);\n" |
| 773 |
" if (bufsize == -1) /* Wartość nie była określona */\n" |
| 774 |
" bufsize = 16384; /* Powinno w zupełności wystarczyć */\n" |
| 775 |
"\\&\n" |
| 776 |
" buf = malloc(bufsize);\n" |
| 777 |
" if (buf == NULL) {\n" |
| 778 |
" perror(\"malloc\");\n" |
| 779 |
" exit(EXIT_FAILURE);\n" |
| 780 |
" }\n" |
| 781 |
"\\&\n" |
| 782 |
" s = getpwnam_r(argv[1], &pwd, buf, bufsize, &result);\n" |
| 783 |
" if (result == NULL) {\n" |
| 784 |
" if (s == 0)\n" |
| 785 |
" printf(\"Nie znaleziono\\[rs]n\");\n" |
| 786 |
" else {\n" |
| 787 |
" errno = s;\n" |
| 788 |
" perror(\"getpwnam_r\");\n" |
| 789 |
" }\n" |
| 790 |
" exit(EXIT_FAILURE);\n" |
| 791 |
" }\n" |
| 792 |
"\\&\n" |
| 793 |
" printf(\"Nazwa: %s; UID: %jd\\[rs]n\", pwd.pw_gecos,\n" |
| 794 |
" (intmax_t) pwd.pw_uid);\n" |
| 795 |
" exit(EXIT_SUCCESS);\n" |
| 796 |
"}\n" |
| 797 |
|
| 798 |
#. SRC END |
| 799 |
#. type: SH |
| 800 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 801 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 802 |
#, no-wrap |
| 803 |
msgid "SEE ALSO" |
| 804 |
msgstr "ZOBACZ TAKŻE" |
| 805 |
|
| 806 |
#. type: Plain text |
| 807 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 808 |
#: opensuse-tumbleweed |
| 809 |
msgid "" |
| 810 |
"B<endpwent>(3), B<fgetpwent>(3), B<getgrnam>(3), B<getpw>(3), " |
| 811 |
"B<getpwent>(3), B<getspnam>(3), B<putpwent>(3), B<setpwent>(3), B<passwd>(5)" |
| 812 |
msgstr "" |
| 813 |
"B<endpwent>(3), B<fgetpwent>(3), B<getgrnam>(3), B<getpw>(3), " |
| 814 |
"B<getpwent>(3), B<getspnam>(3), B<putpwent>(3), B<setpwent>(3), B<passwd>(5)" |
| 815 |
|
| 816 |
#. type: TH |
| 817 |
#: debian-trixie |
| 818 |
#, no-wrap |
| 819 |
msgid "2024-06-15" |
| 820 |
msgstr "15 czerwca 2024 r." |
| 821 |
|
| 822 |
#. type: TH |
| 823 |
#: debian-trixie |
| 824 |
#, no-wrap |
| 825 |
msgid "Linux man-pages 6.9.1" |
| 826 |
msgstr "Linux man-pages 6.9.1" |
| 827 |
|
| 828 |
#. type: Plain text |
| 829 |
#: debian-trixie |
| 830 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 831 |
msgstr "Standardowa biblioteka C (I<libc>, I<-lc>)" |
| 832 |
|
| 833 |
#. type: Plain text |
| 834 |
#: debian-trixie |
| 835 |
#, no-wrap |
| 836 |
msgid "" |
| 837 |
"B<int getpwnam_r(const char *restrict >I<name>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 838 |
"B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n" |
| 839 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 840 |
"B<int getpwuid_r(uid_t >I<uid>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 841 |
"B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n" |
| 842 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 843 |
msgstr "" |
| 844 |
"B<int getpwnam_r(const char *restrict >I<name>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 845 |
"B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n" |
| 846 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 847 |
"B<int getpwuid_r(uid_t >I<uid>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 848 |
"B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n" |
| 849 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 850 |
|
| 851 |
#. type: Plain text |
| 852 |
#: debian-trixie |
| 853 |
msgid "" |
| 854 |
"The B<getpwnam_r>() and B<getpwuid_r>() functions obtain the same " |
| 855 |
"information as B<getpwnam>() and B<getpwuid>(), but store the retrieved " |
| 856 |
"I<passwd> structure in the space pointed to by I<pwd>. The string fields " |
| 857 |
"pointed to by the members of the I<passwd> structure are stored in the " |
| 858 |
"buffer I<buf> of size I<buflen>. A pointer to the result (in case of " |
| 859 |
"success) or NULL (in case no entry was found or an error occurred) is stored " |
| 860 |
"in I<*result>." |
| 861 |
msgstr "" |
| 862 |
"Funkcje B<getpwnam_r>() i B<getpwuid_r>() zwracają te same informacje, co " |
| 863 |
"B<getpwnam>() i B<getpwuid>(), ale zapisują pobraną strukturę I<passwd> w " |
| 864 |
"przestrzeni wskazywanej przez argument I<pwd>. Pola tekstowe, na które " |
| 865 |
"wskazują członkowie struktury I<passwd> są przekazywane w buforze I<buf> o " |
| 866 |
"rozmiarze I<buflen>. W zmiennej I<*result> jest zapisywany wskaźnik do " |
| 867 |
"wyniku funkcji (w przypadku powodzenia) lub NULL (jeśli nie znaleziono wpisu " |
| 868 |
"w bazie lub gdy wystąpił błąd)." |
| 869 |
|
| 870 |
#. type: SH |
| 871 |
#: debian-trixie debian-unstable |
| 872 |
#, no-wrap |
| 873 |
msgid "NOTE" |
| 874 |
msgstr "UWAGA" |
| 875 |
|
| 876 |
#. type: Plain text |
| 877 |
#: debian-trixie debian-unstable |
| 878 |
msgid "" |
| 879 |
"The user password database mostly refers to I</etc/passwd>. However, with " |
| 880 |
"recent systems it also refers to network wide databases using NIS, LDAP and " |
| 881 |
"other local files as configured in I</etc/nsswitch.conf>." |
| 882 |
msgstr "" |
| 883 |
"Baza danych haseł użytkownika zazwyczaj oznacza plik I</etc/passwd>. " |
| 884 |
"Jednakże w nowszych systemach może to także oznaczać bazy używające NIS-a, " |
| 885 |
"LDAP-a oraz innych lokalnych plików skonfigurowanych w I</etc/nsswitch.conf>." |
| 886 |
|
| 887 |
#. type: TP |
| 888 |
#: debian-trixie debian-unstable |
| 889 |
#, no-wrap |
| 890 |
msgid "I</etc/nsswitch.conf>" |
| 891 |
msgstr "I</etc/nsswitch.conf>" |
| 892 |
|
| 893 |
#. type: Plain text |
| 894 |
#: debian-trixie debian-unstable |
| 895 |
msgid "System Databases and Name Service Switch configuration file" |
| 896 |
msgstr "plik konfiguracyjny System Databases i Name Service Switch" |
| 897 |
|
| 898 |
#. type: Plain text |
| 899 |
#: debian-trixie debian-unstable |
| 900 |
msgid "" |
| 901 |
"B<endpwent>(3), B<fgetpwent>(3), B<getgrnam>(3), B<getpw>(3), " |
| 902 |
"B<getpwent>(3), B<getspnam>(3), B<putpwent>(3), B<setpwent>(3), " |
| 903 |
"B<nsswitch.conf>(5), B<passwd>(5)" |
| 904 |
msgstr "" |
| 905 |
"B<endpwent>(3), B<fgetpwent>(3), B<getgrnam>(3), B<getpw>(3), " |
| 906 |
"B<getpwent>(3), B<getspnam>(3), B<putpwent>(3), B<setpwent>(3), " |
| 907 |
"B<nsswitch.conf>(5), B<passwd>(5)" |
| 908 |
|
| 909 |
#. type: TH |
| 910 |
#: fedora-44 fedora-rawhide |
| 911 |
#, no-wrap |
| 912 |
msgid "2024-12-24" |
| 913 |
msgstr "24 grudnia 2024 r." |
| 914 |
|
| 915 |
#. type: TH |
| 916 |
#: fedora-44 fedora-rawhide |
| 917 |
#, no-wrap |
| 918 |
msgid "Linux man-pages 6.13" |
| 919 |
msgstr "Linux man-pages 6.13" |
| 920 |
|
| 921 |
#. type: Plain text |
| 922 |
#: fedora-44 fedora-rawhide |
| 923 |
#, no-wrap |
| 924 |
msgid "" |
| 925 |
"B<int getpwnam_r(const char *restrict >I<name>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 926 |
"B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n" |
| 927 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 928 |
"B<int getpwuid_r(uid_t >I<uid>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 929 |
"B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n" |
| 930 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 931 |
msgstr "" |
| 932 |
"B<int getpwnam_r(const char *restrict >I<name>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 933 |
"B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n" |
| 934 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 935 |
"B<int getpwuid_r(uid_t >I<uid>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 936 |
"B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n" |
| 937 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 938 |
|
| 939 |
#. type: TH |
| 940 |
#: mageia-cauldron |
| 941 |
#, no-wrap |
| 942 |
msgid "Linux man-pages 6.17" |
| 943 |
msgstr "Linux man-pages 6.17" |
| 944 |
|
| 945 |
#. type: TH |
| 946 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 947 |
#, no-wrap |
| 948 |
msgid "Linux man-pages (unreleased)" |
| 949 |
msgstr "Linux man-pages (niewydane)" |