| 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]>, 1998. |
| 5 |
# Andrzej Krzysztofowicz <[email protected]>, 2002. |
| 6 |
# Michał Kułach <[email protected]>, 2024, 2025, 2026. |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: manpages-l10n\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:25+0200\n" |
| 11 |
"PO-Revision-Date: 2026-06-22 21:48+0200\n" |
| 12 |
"Last-Translator: Michał Kułach <[email protected]>\n" |
| 13 |
"Language-Team: Polish <[email protected]>\n" |
| 14 |
"Language: pl\n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " |
| 19 |
"|| n%100>=20) ? 1 : 2);\n" |
| 20 |
"X-Generator: Lokalize 25.04.0\n" |
| 21 |
|
| 22 |
#. type: TH |
| 23 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 24 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 25 |
#, no-wrap |
| 26 |
msgid "getdents" |
| 27 |
msgstr "getdents" |
| 28 |
|
| 29 |
#. type: TH |
| 30 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 31 |
#, no-wrap |
| 32 |
msgid "2026-04-08" |
| 33 |
msgstr "8 kwietnia 2026 r." |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-unstable |
| 37 |
#, no-wrap |
| 38 |
msgid "Linux man-pages 6.18" |
| 39 |
msgstr "Linux man-pages 6.18" |
| 40 |
|
| 41 |
#. type: SH |
| 42 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 43 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 44 |
#, no-wrap |
| 45 |
msgid "NAME" |
| 46 |
msgstr "NAZWA" |
| 47 |
|
| 48 |
#. type: Plain text |
| 49 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 50 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 51 |
msgid "getdents, getdents64 - get directory entries" |
| 52 |
msgstr "getdents, getdents64 - pobiera wpisy z katalogu" |
| 53 |
|
| 54 |
#. type: SH |
| 55 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 56 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 57 |
#, no-wrap |
| 58 |
msgid "LIBRARY" |
| 59 |
msgstr "BIBLIOTEKA" |
| 60 |
|
| 61 |
#. type: Plain text |
| 62 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 63 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 64 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 65 |
msgstr "Standardowa biblioteka C (I<libc>,\\ I<-lc>)" |
| 66 |
|
| 67 |
#. type: SH |
| 68 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 69 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 70 |
#, no-wrap |
| 71 |
msgid "SYNOPSIS" |
| 72 |
msgstr "SKŁADNIA" |
| 73 |
|
| 74 |
#. type: Plain text |
| 75 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 76 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 77 |
#, no-wrap |
| 78 |
msgid "" |
| 79 |
"B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n" |
| 80 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 81 |
msgstr "" |
| 82 |
"B<#include E<lt>sys/syscall.hE<gt> >/* Definicja stałych B<SYS_*> */\n" |
| 83 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 84 |
|
| 85 |
#. type: Plain text |
| 86 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 87 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 88 |
#, no-wrap |
| 89 |
msgid "" |
| 90 |
"B<long syscall(SYS_getdents, unsigned int >I<fd>B<, struct linux_dirent *>I<dirp>B<,>\n" |
| 91 |
"B< unsigned int >I<count>B<);>\n" |
| 92 |
msgstr "" |
| 93 |
"B<long syscall(SYS_getdents, unsigned int >I<fd>B<, struct linux_dirent *>I<dirp>B<,>\n" |
| 94 |
"B< unsigned int >I<count>B<);>\n" |
| 95 |
|
| 96 |
#. type: Plain text |
| 97 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 98 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 99 |
#, no-wrap |
| 100 |
msgid "" |
| 101 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 102 |
"B<#include E<lt>dirent.hE<gt>>\n" |
| 103 |
msgstr "" |
| 104 |
"B<#define _GNU_SOURCE> /* Zob. feature_test_macros(7) */\n" |
| 105 |
"B<#include E<lt>dirent.hE<gt>>\n" |
| 106 |
|
| 107 |
#. type: Plain text |
| 108 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 109 |
#: opensuse-tumbleweed |
| 110 |
#, no-wrap |
| 111 |
msgid "" |
| 112 |
"B<ssize_t getdents64(>size_t count;\n" |
| 113 |
"B< int >I<fd>B<, void >I<dirp>B<[>I<count>B<], size_t >I<count>B<);>\n" |
| 114 |
msgstr "" |
| 115 |
"B<ssize_t getdents64(>size_t count;\n" |
| 116 |
"B< int >I<fd>B<, void >I<dirp>B<[>I<count>B<], size_t >I<count>B<);>\n" |
| 117 |
|
| 118 |
#. type: Plain text |
| 119 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 120 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 121 |
msgid "" |
| 122 |
"I<Note>: glibc provides no wrapper for B<getdents>(), necessitating the use " |
| 123 |
"of B<syscall>(2)." |
| 124 |
msgstr "" |
| 125 |
"I<Uwaga>: glibc nie udostępnia opakowania dla B<getdents>(), co wymusza " |
| 126 |
"użycie B<syscall>(2)." |
| 127 |
|
| 128 |
#. type: Plain text |
| 129 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 130 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 131 |
msgid "" |
| 132 |
"I<Note>: There is no definition of I<struct linux_dirent> in glibc; see " |
| 133 |
"NOTES." |
| 134 |
msgstr "I<Note>: W glibc brak definicji I<struct linux_dirent>; zob. UWAGI." |
| 135 |
|
| 136 |
#. type: SH |
| 137 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 138 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 139 |
#, no-wrap |
| 140 |
msgid "DESCRIPTION" |
| 141 |
msgstr "OPIS" |
| 142 |
|
| 143 |
#. type: Plain text |
| 144 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 145 |
msgid "" |
| 146 |
"These are not the interfaces you are interested in. Look at B<readdir>(3) " |
| 147 |
"for the POSIX-conforming C library interface." |
| 148 |
msgstr "" |
| 149 |
"Nie są to interfejsy, które cię interesują. Opis implementacji interfejsu " |
| 150 |
"zgodnego z POSIX w bibliotece C znajduje się w B<readdir>(3)." |
| 151 |
|
| 152 |
#. type: SS |
| 153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 154 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 155 |
#, no-wrap |
| 156 |
msgid "getdents()" |
| 157 |
msgstr "getdents()" |
| 158 |
|
| 159 |
#. type: Plain text |
| 160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 161 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 162 |
msgid "" |
| 163 |
"The system call B<getdents>() reads several I<linux_dirent> structures from " |
| 164 |
"the directory referred to by the open file descriptor I<fd> into the buffer " |
| 165 |
"pointed to by I<dirp>. The argument I<count> specifies the size of that " |
| 166 |
"buffer." |
| 167 |
msgstr "" |
| 168 |
"Wywołanie systemowe B<getdents>() odczytuje kolejne struktury " |
| 169 |
"I<linux_dirent> z katalogu wskazywanego przez przez deskryptor otwartego " |
| 170 |
"pliku I<fd> do bufora wskazywanego przez I<dirp>. Argument I<count> określa " |
| 171 |
"rozmiar tego bufora." |
| 172 |
|
| 173 |
#. type: Plain text |
| 174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 175 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 176 |
msgid "The I<linux_dirent> structure is declared as follows:" |
| 177 |
msgstr "Struktura I<linux_dirent> jest zadeklarowana następująco:" |
| 178 |
|
| 179 |
#. type: Plain text |
| 180 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 181 |
#: opensuse-tumbleweed |
| 182 |
#, no-wrap |
| 183 |
msgid "" |
| 184 |
"struct linux_dirent {\n" |
| 185 |
" unsigned long d_ino; /* Inode number */\n" |
| 186 |
" unsigned long d_off; /* Not an offset; see below */\n" |
| 187 |
" unsigned short d_reclen; /* Length of this \\f[I]linux_dirent\\fR */\n" |
| 188 |
" char d_name[]; /* Filename (null-terminated) */\n" |
| 189 |
" /* length is actually (d_reclen - 2 -\n" |
| 190 |
" offsetof(struct linux_dirent, d_name)) */\n" |
| 191 |
" /*\n" |
| 192 |
" char pad; // Zero padding byte\n" |
| 193 |
" char d_type; // File type (only since Linux\n" |
| 194 |
" // 2.6.4); offset is (d_reclen - 1)\n" |
| 195 |
" */\n" |
| 196 |
"}\n" |
| 197 |
msgstr "" |
| 198 |
"struct linux_dirent {\n" |
| 199 |
" unsigned long d_ino; /* Numer i-węzła */\n" |
| 200 |
" unsigned long d_off; /* Nie jest przesunięciem; zob. niżej */\n" |
| 201 |
" unsigned short d_reclen; /* Długość tego \\f[I]linux_dirent\\fR */\n" |
| 202 |
" char d_name[]; /* Nazwa pliku (zakończ. znakiem null) */\n" |
| 203 |
" /* długość to faktycznie (d_reclen - 2 -\n" |
| 204 |
" offsetof(struct linux_dirent, d_name)) */\n" |
| 205 |
" /*\n" |
| 206 |
" char pad; // Zerowy bajt wyrównania\n" |
| 207 |
" char d_type; // Typ pliku (tylko od Linuksa\n" |
| 208 |
" // 2.6.4); przesunięciem jest (d_reclen - 1)\n" |
| 209 |
" */\n" |
| 210 |
"}\n" |
| 211 |
|
| 212 |
#. type: Plain text |
| 213 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 214 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 215 |
msgid "" |
| 216 |
"I<d_ino> is an inode number. I<d_off> is a filesystem-specific value with " |
| 217 |
"no specific meaning to user space, though on older filesystems it used to be " |
| 218 |
"the distance from the start of the directory to the start of the next " |
| 219 |
"I<linux_dirent>; see B<readdir>(3). I<d_reclen> is the size of this entire " |
| 220 |
"I<linux_dirent>. I<d_name> is a null-terminated filename." |
| 221 |
msgstr "" |
| 222 |
"I<d_ino> jest numerem i-węzła. I<d_off> jest wartością zależną od systemu " |
| 223 |
"plików, która nie ma znaczenia dla przestrzeni użytkownika, choć w starszych " |
| 224 |
"systemach plików była odległością od początku katalogu do początku następnej " |
| 225 |
"struktury I<linux_dirent>; zob. B<readdir>(3). I<d_reclen> jest wielkością " |
| 226 |
"tej całej struktury I<linux_dirent>. I<d_name> jest nazwą pliku zakończoną " |
| 227 |
"znakiem NUL." |
| 228 |
|
| 229 |
#. type: Plain text |
| 230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 231 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 232 |
msgid "" |
| 233 |
"I<d_type> is a byte at the end of the structure that indicates the file " |
| 234 |
"type. It contains one of the following values (defined in " |
| 235 |
"I<E<lt>dirent.hE<gt>>):" |
| 236 |
msgstr "" |
| 237 |
"I<d_type> jest bajtem na końcu struktury wskazującym typ pliku. Zawiera " |
| 238 |
"jedną z następujących wartości (zdefiniowanym w I<E<lt>dirent.hE<gt>>):" |
| 239 |
|
| 240 |
#. type: TP |
| 241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 242 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 243 |
#, no-wrap |
| 244 |
msgid "B<DT_BLK>" |
| 245 |
msgstr "B<DT_BLK>" |
| 246 |
|
| 247 |
#. type: Plain text |
| 248 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 249 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 250 |
msgid "This is a block device." |
| 251 |
msgstr "Jest to urządzenie blokowe" |
| 252 |
|
| 253 |
#. type: TP |
| 254 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 255 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 256 |
#, no-wrap |
| 257 |
msgid "B<DT_CHR>" |
| 258 |
msgstr "B<DT_CHR>" |
| 259 |
|
| 260 |
#. type: Plain text |
| 261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 262 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 263 |
msgid "This is a character device." |
| 264 |
msgstr "Jest to urządzenie znakowe." |
| 265 |
|
| 266 |
#. type: TP |
| 267 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 268 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 269 |
#, no-wrap |
| 270 |
msgid "B<DT_DIR>" |
| 271 |
msgstr "B<DT_DIR>" |
| 272 |
|
| 273 |
#. type: Plain text |
| 274 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 275 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 276 |
msgid "This is a directory." |
| 277 |
msgstr "Jest to katalog." |
| 278 |
|
| 279 |
#. type: TP |
| 280 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 281 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 282 |
#, no-wrap |
| 283 |
msgid "B<DT_FIFO>" |
| 284 |
msgstr "B<DT_FIFO>" |
| 285 |
|
| 286 |
#. type: Plain text |
| 287 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 288 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 289 |
msgid "This is a named pipe (FIFO)." |
| 290 |
msgstr "Jest to potok nazwany (FIFO)." |
| 291 |
|
| 292 |
#. type: TP |
| 293 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 294 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 295 |
#, no-wrap |
| 296 |
msgid "B<DT_LNK>" |
| 297 |
msgstr "B<DT_LNK>" |
| 298 |
|
| 299 |
#. type: Plain text |
| 300 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 301 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 302 |
msgid "This is a symbolic link." |
| 303 |
msgstr "Jest to dowiązanie symboliczne." |
| 304 |
|
| 305 |
#. type: TP |
| 306 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 307 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 308 |
#, no-wrap |
| 309 |
msgid "B<DT_REG>" |
| 310 |
msgstr "B<DT_REG>" |
| 311 |
|
| 312 |
#. type: Plain text |
| 313 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 314 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 315 |
msgid "This is a regular file." |
| 316 |
msgstr "Jest to zwykły plik." |
| 317 |
|
| 318 |
#. type: TP |
| 319 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 320 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 321 |
#, no-wrap |
| 322 |
msgid "B<DT_SOCK>" |
| 323 |
msgstr "B<DT_SOCK>" |
| 324 |
|
| 325 |
#. type: Plain text |
| 326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 327 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 328 |
msgid "This is a UNIX domain socket." |
| 329 |
msgstr "Jest to gniazdo dziedziny Uniksa." |
| 330 |
|
| 331 |
#. type: TP |
| 332 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 333 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 334 |
#, no-wrap |
| 335 |
msgid "B<DT_UNKNOWN>" |
| 336 |
msgstr "B<DT_UNKNOWN>" |
| 337 |
|
| 338 |
#. type: Plain text |
| 339 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 340 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 341 |
msgid "The file type is unknown." |
| 342 |
msgstr "Typ pliku jest nieznany." |
| 343 |
|
| 344 |
#. type: Plain text |
| 345 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 346 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 347 |
msgid "" |
| 348 |
"The I<d_type> field is implemented since Linux 2.6.4. It occupies a space " |
| 349 |
"that was previously a zero-filled padding byte in the I<linux_dirent> " |
| 350 |
"structure. Thus, on kernels up to and including Linux 2.6.3, attempting to " |
| 351 |
"access this field always provides the value 0 (B<DT_UNKNOWN>)." |
| 352 |
msgstr "" |
| 353 |
"Pole I<d_type> zaimplementowano od Linuksa 2.6.4. Zajmuje miejsce, które " |
| 354 |
"wcześniej zajmował zerowy bajt wypełnienia w strukturze I<linux_dirent>. Z " |
| 355 |
"tego względu jądra do Linuksa 2.6.3, próbujące uzyskać dostęp do tego pola " |
| 356 |
"zawsze zwracają wartość 0 (B<DT_UNKNOWN>)." |
| 357 |
|
| 358 |
#. kernel 2.6.27 |
| 359 |
#. The same sentence is in readdir.2 |
| 360 |
#. type: Plain text |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
msgid "" |
| 364 |
"Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) " |
| 365 |
"have full support for returning the file type in I<d_type>. All " |
| 366 |
"applications must properly handle a return of B<DT_UNKNOWN>." |
| 367 |
msgstr "" |
| 368 |
"Obecnie jedynie niektóre systemy plików (m.in Btrfs, ext2, ext3 i ext4) " |
| 369 |
"obsługują w pełni zwracanie typu pliku w I<d_type>. Wszystkie programy muszą " |
| 370 |
"poprawnie obsługiwać zwrócenie wartości B<DT_UNKNOWN>." |
| 371 |
|
| 372 |
#. type: SS |
| 373 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 374 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 375 |
#, no-wrap |
| 376 |
msgid "getdents64()" |
| 377 |
msgstr "getdents64()" |
| 378 |
|
| 379 |
#. type: Plain text |
| 380 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 381 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 382 |
msgid "" |
| 383 |
"The original Linux B<getdents>() system call did not handle large " |
| 384 |
"filesystems and large file offsets. Consequently, Linux 2.4 added " |
| 385 |
"B<getdents64>(), with wider types for the I<d_ino> and I<d_off> fields. In " |
| 386 |
"addition, B<getdents64>() supports an explicit I<d_type> field." |
| 387 |
msgstr "" |
| 388 |
"Pierwotne, linuksowe wywołanie B<getdents>() nie obsługiwało dużych systemów " |
| 389 |
"plików i dużych przesunięć pliku. Z tego powodu, Linux 2.4 dodał " |
| 390 |
"B<getdents64>(), z szerszymi typami pól I<d_ino> i I<d_off>. Dodatkowo, " |
| 391 |
"B<getdents64>() obsługuje wprost pole I<d_type>." |
| 392 |
|
| 393 |
#. type: Plain text |
| 394 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 395 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 396 |
msgid "" |
| 397 |
"The B<getdents64>() system call is like B<getdents>(), except that its " |
| 398 |
"second argument is a pointer to a buffer containing structures of the " |
| 399 |
"following type:" |
| 400 |
msgstr "" |
| 401 |
"Wywołanie systemowe B<getdents64>() zachowuje się jak B<getdents>(), tyle że " |
| 402 |
"jego drugi argument jest wskaźnikiem do bufora zawierającego strukturę " |
| 403 |
"następującego typu:" |
| 404 |
|
| 405 |
#. type: Plain text |
| 406 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 407 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 408 |
#, no-wrap |
| 409 |
msgid "" |
| 410 |
"struct linux_dirent64 {\n" |
| 411 |
" ino64_t d_ino; /* 64-bit inode number */\n" |
| 412 |
" off64_t d_off; /* Not an offset; see getdents() */\n" |
| 413 |
" unsigned short d_reclen; /* Size of this dirent */\n" |
| 414 |
" unsigned char d_type; /* File type */\n" |
| 415 |
" char d_name[]; /* Filename (null-terminated) */\n" |
| 416 |
"};\n" |
| 417 |
msgstr "" |
| 418 |
"struct linux_dirent64 {\n" |
| 419 |
" ino64_t d_ino; /* 64-bitowy numer i-węzła */\n" |
| 420 |
" off64_t d_off; /* Nie jest przesunięciem, zob. getdents() */\n" |
| 421 |
" unsigned short d_reclen; /* Rozmiar tego dirent */\n" |
| 422 |
" unsigned char d_type; /* Typ pliku */\n" |
| 423 |
" char d_name[]; /* Nazwa pliku (zakończona null) */\n" |
| 424 |
"};\n" |
| 425 |
|
| 426 |
#. type: SH |
| 427 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 428 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 429 |
#, no-wrap |
| 430 |
msgid "RETURN VALUE" |
| 431 |
msgstr "WARTOŚĆ ZWRACANA" |
| 432 |
|
| 433 |
#. type: Plain text |
| 434 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 435 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 436 |
msgid "" |
| 437 |
"On success, the number of bytes read is returned. On end of directory, 0 is " |
| 438 |
"returned. On error, -1 is returned, and I<errno> is set to indicate the " |
| 439 |
"error." |
| 440 |
msgstr "" |
| 441 |
"Po pomyślnym zakończeniu zwracana jest ilość odczytanych bajtów. Na końcu " |
| 442 |
"katalogu zwracane jest 0. Przy błędzie zwracane jest -1 i ustawiane I<errno> " |
| 443 |
"wskazując błąd." |
| 444 |
|
| 445 |
#. type: SH |
| 446 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 447 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 448 |
#, no-wrap |
| 449 |
msgid "ERRORS" |
| 450 |
msgstr "BŁĘDY" |
| 451 |
|
| 452 |
#. type: TP |
| 453 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 454 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 455 |
#, no-wrap |
| 456 |
msgid "B<EBADF>" |
| 457 |
msgstr "B<EBADF>" |
| 458 |
|
| 459 |
#. type: Plain text |
| 460 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 461 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 462 |
msgid "Invalid file descriptor I<fd>." |
| 463 |
msgstr "Nieprawidłowy deskryptor I<fd>." |
| 464 |
|
| 465 |
#. type: TP |
| 466 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 467 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 468 |
#, no-wrap |
| 469 |
msgid "B<EFAULT>" |
| 470 |
msgstr "B<EFAULT>" |
| 471 |
|
| 472 |
#. type: Plain text |
| 473 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 474 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 475 |
msgid "Argument points outside the calling process's address space." |
| 476 |
msgstr "Argument wskazuje poza przestrzeń adresową wywołującego procesu." |
| 477 |
|
| 478 |
#. type: TP |
| 479 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 480 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 481 |
#, no-wrap |
| 482 |
msgid "B<EINVAL>" |
| 483 |
msgstr "B<EINVAL>" |
| 484 |
|
| 485 |
#. type: Plain text |
| 486 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 487 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 488 |
msgid "Result buffer is too small." |
| 489 |
msgstr "Bufor na wynik jest za mały." |
| 490 |
|
| 491 |
#. type: TP |
| 492 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 493 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 494 |
#, no-wrap |
| 495 |
msgid "B<ENOENT>" |
| 496 |
msgstr "B<ENOENT>" |
| 497 |
|
| 498 |
#. type: Plain text |
| 499 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 500 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 501 |
msgid "No such directory." |
| 502 |
msgstr "Nie ma takiego katalogu." |
| 503 |
|
| 504 |
#. type: TP |
| 505 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 506 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 507 |
#, no-wrap |
| 508 |
msgid "B<ENOTDIR>" |
| 509 |
msgstr "B<ENOTDIR>" |
| 510 |
|
| 511 |
#. type: Plain text |
| 512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 513 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 514 |
msgid "File descriptor does not refer to a directory." |
| 515 |
msgstr "Deskryptor pliku nie odnosi się do katalogu." |
| 516 |
|
| 517 |
#. type: SH |
| 518 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 519 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 520 |
#, no-wrap |
| 521 |
msgid "STANDARDS" |
| 522 |
msgstr "STANDARDY" |
| 523 |
|
| 524 |
#. type: Plain text |
| 525 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 526 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 527 |
msgid "None." |
| 528 |
msgstr "Brak." |
| 529 |
|
| 530 |
#. type: SH |
| 531 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 532 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 533 |
#, no-wrap |
| 534 |
msgid "HISTORY" |
| 535 |
msgstr "HISTORIA" |
| 536 |
|
| 537 |
#. type: TP |
| 538 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 539 |
#, no-wrap |
| 540 |
msgid "B<getdents>()" |
| 541 |
msgstr "B<getdents>()" |
| 542 |
|
| 543 |
#. SVr4 documents additional ENOLINK, EIO error conditions. |
| 544 |
#. type: Plain text |
| 545 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 546 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 547 |
msgid "SVr4." |
| 548 |
msgstr "SVr4." |
| 549 |
|
| 550 |
#. type: TP |
| 551 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 552 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 553 |
#, no-wrap |
| 554 |
msgid "B<getdents64>()" |
| 555 |
msgstr "B<getdents64>()" |
| 556 |
|
| 557 |
#. type: Plain text |
| 558 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 559 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 560 |
msgid "glibc 2.30." |
| 561 |
msgstr "glibc 2.30." |
| 562 |
|
| 563 |
#. type: SH |
| 564 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 565 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 566 |
#, no-wrap |
| 567 |
msgid "NOTES" |
| 568 |
msgstr "UWAGI" |
| 569 |
|
| 570 |
#. type: Plain text |
| 571 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 572 |
msgid "" |
| 573 |
"glibc does not provide a wrapper for B<getdents>(); call B<getdents>() " |
| 574 |
"using B<syscall>(2). In that case you will need to define the " |
| 575 |
"I<linux_dirent> structure yourself." |
| 576 |
msgstr "" |
| 577 |
"glibc nie udostępnia opakowania dla B<getdents>(); należy je wywołać za " |
| 578 |
"pomocą B<syscall>(2). W takim przypadku konieczne będzie samodzielne " |
| 579 |
"zdefiniowanie struktury I<linux_dirent>." |
| 580 |
|
| 581 |
#. type: Plain text |
| 582 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 583 |
msgid "" |
| 584 |
"The B<getdents64>() system call accepts an B<unsigned int> argument " |
| 585 |
"I<count> and assumes that I<count> does not exceed B<INT_MAX>. The glibc " |
| 586 |
"wrapper function sets I<count> to B<INT_MAX> if it exceeds B<INT_MAX>. " |
| 587 |
"glibc defines a I<dirent64> structure, which is similar to I<linux_dirent64> " |
| 588 |
"but with a 256-byte I<d_name>." |
| 589 |
msgstr "" |
| 590 |
"Wywołanie systemowe B<getdents64>() przyjmuje argument I<count> jako " |
| 591 |
"B<unsigned int> i zakłada, że I<count> nie przekracza B<INT_MAX>. Funkcja " |
| 592 |
"opakowująca z glibc ustawia I<count> na B<INT_MAX>, jeśli przekracza on " |
| 593 |
"B<INT_MAX>. glibc definiuje strukturę I<dirent64>, która jest podobna do " |
| 594 |
"I<linux_dirent64>, lecz ma 256-bajtową I<d_name>." |
| 595 |
|
| 596 |
#. type: Plain text |
| 597 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 598 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 599 |
msgid "Probably, you want to use B<readdir>(3) instead of these system calls." |
| 600 |
msgstr "" |
| 601 |
"Zamiast opisywanych wywołań systemowych, prawdopodobnie lepszym pomysłem " |
| 602 |
"będzie użycie B<readdir>(3)." |
| 603 |
|
| 604 |
#. type: Plain text |
| 605 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 606 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 607 |
msgid "These calls supersede B<readdir>(2)." |
| 608 |
msgstr "Te wywołania zastępują B<readdir>(2)." |
| 609 |
|
| 610 |
#. type: SH |
| 611 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 612 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 613 |
#, no-wrap |
| 614 |
msgid "EXAMPLES" |
| 615 |
msgstr "PRZYKŁADY" |
| 616 |
|
| 617 |
#. FIXME The example program needs to be revised, since it uses the older |
| 618 |
#. getdents() system call and the structure with smaller field widths. |
| 619 |
#. type: Plain text |
| 620 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 621 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 622 |
msgid "" |
| 623 |
"The program below demonstrates the use of B<getdents>(). The following " |
| 624 |
"output shows an example of what we see when running this program on an ext2 " |
| 625 |
"directory:" |
| 626 |
msgstr "" |
| 627 |
"Program poniżej demonstruje użycie B<getdents>(). Poniższe wyjście pokazuje " |
| 628 |
"przykład, w którym można zaobserwować działanie tego programu w katalogu " |
| 629 |
"ext2:" |
| 630 |
|
| 631 |
#. type: Plain text |
| 632 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 633 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 634 |
#, no-wrap |
| 635 |
msgid "" |
| 636 |
"$B< ./a.out /testfs/>\n" |
| 637 |
"--------------- nread=120 ---------------\n" |
| 638 |
"inode# file type d_reclen d_off d_name\n" |
| 639 |
" 2 directory 16 12 .\n" |
| 640 |
" 2 directory 16 24 ..\n" |
| 641 |
" 11 directory 24 44 lost+found\n" |
| 642 |
" 12 regular 16 56 a\n" |
| 643 |
" 228929 directory 16 68 sub\n" |
| 644 |
" 16353 directory 16 80 sub2\n" |
| 645 |
" 130817 directory 16 4096 sub3\n" |
| 646 |
msgstr "" |
| 647 |
"$B< ./a.out /testfs/>\n" |
| 648 |
"--------------- nread=120 ---------------\n" |
| 649 |
"i-węzeł# typ pliku d_reclen d_off d_name\n" |
| 650 |
" 2 katalog 16 12 .\n" |
| 651 |
" 2 katalog 16 24 ..\n" |
| 652 |
" 11 katalog 24 44 lost+found\n" |
| 653 |
" 12 zwykły 16 56 a\n" |
| 654 |
" 228929 katalog 16 68 sub\n" |
| 655 |
" 16353 katalog 16 80 sub2\n" |
| 656 |
" 130817 katalog 16 4096 sub3\n" |
| 657 |
|
| 658 |
#. type: SS |
| 659 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 660 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 661 |
#, no-wrap |
| 662 |
msgid "Program source" |
| 663 |
msgstr "Kod źródłowy programu" |
| 664 |
|
| 665 |
#. type: Plain text |
| 666 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 667 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 668 |
#, no-wrap |
| 669 |
msgid "" |
| 670 |
"#define _GNU_SOURCE\n" |
| 671 |
"#include E<lt>dirent.hE<gt> /* Defines DT_* constants */\n" |
| 672 |
"#include E<lt>err.hE<gt>\n" |
| 673 |
"#include E<lt>fcntl.hE<gt>\n" |
| 674 |
"#include E<lt>stdint.hE<gt>\n" |
| 675 |
"#include E<lt>stdio.hE<gt>\n" |
| 676 |
"#include E<lt>stdlib.hE<gt>\n" |
| 677 |
"#include E<lt>sys/syscall.hE<gt>\n" |
| 678 |
"#include E<lt>sys/types.hE<gt>\n" |
| 679 |
"#include E<lt>unistd.hE<gt>\n" |
| 680 |
"\\&\n" |
| 681 |
"struct linux_dirent {\n" |
| 682 |
" unsigned long d_ino;\n" |
| 683 |
" off_t d_off;\n" |
| 684 |
" unsigned short d_reclen;\n" |
| 685 |
" char d_name[];\n" |
| 686 |
"};\n" |
| 687 |
"\\&\n" |
| 688 |
"#define BUF_SIZE 1024\n" |
| 689 |
"\\&\n" |
| 690 |
"int\n" |
| 691 |
"main(int argc, char *argv[])\n" |
| 692 |
"{\n" |
| 693 |
" int fd;\n" |
| 694 |
" char d_type;\n" |
| 695 |
" char buf[BUF_SIZE];\n" |
| 696 |
" long nread;\n" |
| 697 |
" struct linux_dirent *d;\n" |
| 698 |
"\\&\n" |
| 699 |
" fd = open(argc E<gt> 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n" |
| 700 |
" if (fd == -1)\n" |
| 701 |
" err(EXIT_FAILURE, \"open\");\n" |
| 702 |
"\\&\n" |
| 703 |
" for (;;) {\n" |
| 704 |
" nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n" |
| 705 |
" if (nread == -1)\n" |
| 706 |
" err(EXIT_FAILURE, \"getdents\");\n" |
| 707 |
"\\&\n" |
| 708 |
" if (nread == 0)\n" |
| 709 |
" break;\n" |
| 710 |
"\\&\n" |
| 711 |
" printf(\"--------------- nread=%ld ---------------\\[rs]n\", nread);\n" |
| 712 |
" printf(\"inode# file type d_reclen d_off d_name\\[rs]n\");\n" |
| 713 |
" for (size_t bpos = 0; bpos E<lt> nread;) {\n" |
| 714 |
" d = (struct linux_dirent *) (buf + bpos);\n" |
| 715 |
" printf(\"%8lu \", d-E<gt>d_ino);\n" |
| 716 |
" d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n" |
| 717 |
" printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n" |
| 718 |
" (d_type == DT_DIR) ? \"directory\" :\n" |
| 719 |
" (d_type == DT_FIFO) ? \"FIFO\" :\n" |
| 720 |
" (d_type == DT_SOCK) ? \"socket\" :\n" |
| 721 |
" (d_type == DT_LNK) ? \"symlink\" :\n" |
| 722 |
" (d_type == DT_BLK) ? \"block dev\" :\n" |
| 723 |
" (d_type == DT_CHR) ? \"char dev\" : \"???\");\n" |
| 724 |
" printf(\"%4d %10jd %s\\[rs]n\", d-E<gt>d_reclen,\n" |
| 725 |
" (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n" |
| 726 |
" bpos += d-E<gt>d_reclen;\n" |
| 727 |
" }\n" |
| 728 |
" }\n" |
| 729 |
"\\&\n" |
| 730 |
" exit(EXIT_SUCCESS);\n" |
| 731 |
"}\n" |
| 732 |
msgstr "" |
| 733 |
"#define _GNU_SOURCE\n" |
| 734 |
"#include E<lt>dirent.hE<gt> /* Definiuje stałe DT_* */\n" |
| 735 |
"#include E<lt>err.hE<gt>\n" |
| 736 |
"#include E<lt>fcntl.hE<gt>\n" |
| 737 |
"#include E<lt>stdint.hE<gt>\n" |
| 738 |
"#include E<lt>stdio.hE<gt>\n" |
| 739 |
"#include E<lt>stdlib.hE<gt>\n" |
| 740 |
"#include E<lt>sys/syscall.hE<gt>\n" |
| 741 |
"#include E<lt>sys/types.hE<gt>\n" |
| 742 |
"#include E<lt>unistd.hE<gt>\n" |
| 743 |
"\\&\n" |
| 744 |
"struct linux_dirent {\n" |
| 745 |
" unsigned long d_ino;\n" |
| 746 |
" off_t d_off;\n" |
| 747 |
" unsigned short d_reclen;\n" |
| 748 |
" char d_name[];\n" |
| 749 |
"};\n" |
| 750 |
"\\&\n" |
| 751 |
"#define BUF_SIZE 1024\n" |
| 752 |
"\\&\n" |
| 753 |
"int\n" |
| 754 |
"main(int argc, char *argv[])\n" |
| 755 |
"{\n" |
| 756 |
" int fd;\n" |
| 757 |
" char d_type;\n" |
| 758 |
" char buf[BUF_SIZE];\n" |
| 759 |
" long nread;\n" |
| 760 |
" struct linux_dirent *d;\n" |
| 761 |
"\\&\n" |
| 762 |
" fd = open(argc E<gt> 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n" |
| 763 |
" if (fd == -1)\n" |
| 764 |
" err(EXIT_FAILURE, \"open\");\n" |
| 765 |
"\\&\n" |
| 766 |
" for (;;) {\n" |
| 767 |
" nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n" |
| 768 |
" if (nread == -1)\n" |
| 769 |
" err(EXIT_FAILURE, \"getdents\");\n" |
| 770 |
"\\&\n" |
| 771 |
" if (nread == 0)\n" |
| 772 |
" break;\n" |
| 773 |
"\\&\n" |
| 774 |
" printf(\"--------------- nread=%ld ---------------\\[rs]n\", nread);\n" |
| 775 |
" printf(\"i-węzeł# typ pliku d_reclen d_off d_name\\[rs]n\");\n" |
| 776 |
" for (size_t bpos = 0; bpos E<lt> nread;) {\n" |
| 777 |
" d = (struct linux_dirent *) (buf + bpos);\n" |
| 778 |
" printf(\"%8lu \", d-E<gt>d_ino);\n" |
| 779 |
" d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n" |
| 780 |
" printf(\"%-10s \", (d_type == DT_REG) ? \"zwykły\" :\n" |
| 781 |
" (d_type == DT_DIR) ? \"katalog\" :\n" |
| 782 |
" (d_type == DT_FIFO) ? \"FIFO\" :\n" |
| 783 |
" (d_type == DT_SOCK) ? \"gniazdo\" :\n" |
| 784 |
" (d_type == DT_LNK) ? \"dow. symbol.\" :\n" |
| 785 |
" (d_type == DT_BLK) ? \"urz. blok.\" :\n" |
| 786 |
" (d_type == DT_CHR) ? \"urz. znak.\" : \"???\");\n" |
| 787 |
" printf(\"%4d %10jd %s\\[rs]n\", d-E<gt>d_reclen,\n" |
| 788 |
" (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n" |
| 789 |
" bpos += d-E<gt>d_reclen;\n" |
| 790 |
" }\n" |
| 791 |
" }\n" |
| 792 |
"\\&\n" |
| 793 |
" exit(EXIT_SUCCESS);\n" |
| 794 |
"}\n" |
| 795 |
|
| 796 |
#. SRC END |
| 797 |
#. type: SH |
| 798 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 799 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 800 |
#, no-wrap |
| 801 |
msgid "SEE ALSO" |
| 802 |
msgstr "ZOBACZ TAKŻE" |
| 803 |
|
| 804 |
#. type: Plain text |
| 805 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 806 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 807 |
msgid "B<readdir>(2), B<readdir>(3), B<inode>(7)" |
| 808 |
msgstr "B<readdir>(2), B<readdir>(3), B<inode>(7)" |
| 809 |
|
| 810 |
#. type: TH |
| 811 |
#: debian-trixie |
| 812 |
#, no-wrap |
| 813 |
msgid "2024-06-15" |
| 814 |
msgstr "15 czerwca 2024 r." |
| 815 |
|
| 816 |
#. type: TH |
| 817 |
#: debian-trixie |
| 818 |
#, no-wrap |
| 819 |
msgid "Linux man-pages 6.9.1" |
| 820 |
msgstr "Linux man-pages 6.9.1" |
| 821 |
|
| 822 |
#. type: Plain text |
| 823 |
#: debian-trixie |
| 824 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 825 |
msgstr "Standardowa biblioteka C (I<libc>, I<-lc>)" |
| 826 |
|
| 827 |
#. type: Plain text |
| 828 |
#: debian-trixie fedora-44 fedora-rawhide |
| 829 |
#, no-wrap |
| 830 |
msgid "B<ssize_t getdents64(int >I<fd>B<, void >I<dirp>B<[.>I<count>B<], size_t >I<count>B<);>\n" |
| 831 |
msgstr "B<ssize_t getdents64(int >I<fd>B<, void >I<dirp>B<[.>I<count>B<], size_t >I<count>B<);>\n" |
| 832 |
|
| 833 |
#. type: Plain text |
| 834 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 835 |
msgid "" |
| 836 |
"These are not the interfaces you are interested in. Look at B<readdir>(3) " |
| 837 |
"for the POSIX-conforming C library interface. This page documents the bare " |
| 838 |
"kernel system call interfaces." |
| 839 |
msgstr "" |
| 840 |
"Nie są to interfejsy, które cię interesują. Opis implementacji interfejsu " |
| 841 |
"zgodnego z POSIX w bibliotece C znajduje się w B<readdir>(3). Niniejsza " |
| 842 |
"strona opisuje nagi interfejs wywołania systemowego." |
| 843 |
|
| 844 |
#. type: Plain text |
| 845 |
#: debian-trixie fedora-44 fedora-rawhide |
| 846 |
#, no-wrap |
| 847 |
msgid "" |
| 848 |
"struct linux_dirent {\n" |
| 849 |
" unsigned long d_ino; /* Inode number */\n" |
| 850 |
" unsigned long d_off; /* Not an offset; see below */\n" |
| 851 |
" unsigned short d_reclen; /* Length of this I<linux_dirent> */\n" |
| 852 |
" char d_name[]; /* Filename (null-terminated) */\n" |
| 853 |
" /* length is actually (d_reclen - 2 -\n" |
| 854 |
" offsetof(struct linux_dirent, d_name)) */\n" |
| 855 |
" /*\n" |
| 856 |
" char pad; // Zero padding byte\n" |
| 857 |
" char d_type; // File type (only since Linux\n" |
| 858 |
" // 2.6.4); offset is (d_reclen - 1)\n" |
| 859 |
" */\n" |
| 860 |
"}\n" |
| 861 |
msgstr "" |
| 862 |
"struct linux_dirent {\n" |
| 863 |
" unsigned long d_ino; /* Numer i-węzła */\n" |
| 864 |
" unsigned long d_off; /* Nie jest przesunięciem; zob. niżej */\n" |
| 865 |
" unsigned short d_reclen; /* Długość tego I<linux_dirent> */\n" |
| 866 |
" char d_name[]; /* Nazwa pliku (zakończ. znakiem null) */\n" |
| 867 |
" /* długość to faktycznie (d_reclen - 2 -\n" |
| 868 |
" offsetof(struct linux_dirent, d_name)) */\n" |
| 869 |
" /*\n" |
| 870 |
" char pad; // Zerowy bajt wyrównania\n" |
| 871 |
" char d_type; // Typ pliku (tylko od Linuksa\n" |
| 872 |
" // 2.6.4); przesunięciem jest (d_reclen - 1)\n" |
| 873 |
" */\n" |
| 874 |
"}\n" |
| 875 |
|
| 876 |
#. type: Plain text |
| 877 |
#: debian-trixie |
| 878 |
msgid "" |
| 879 |
"I<d_ino> is an inode number. I<d_off> is a filesystem-specific value with " |
| 880 |
"no specific meaning to user space, though on older filesystems it used to be " |
| 881 |
"the distance from the start of the directory to the start of the next " |
| 882 |
"I<linux_dirent>; see B<readdir>(3)B<.> I<d_reclen> is the size of this " |
| 883 |
"entire I<linux_dirent>. I<d_name> is a null-terminated filename." |
| 884 |
msgstr "" |
| 885 |
"I<d_ino> jest numerem i-węzła. I<d_off> jest wartością zależną od systemu " |
| 886 |
"plików, która nie ma znaczenia dla przestrzeni użytkownika, choć w starszych " |
| 887 |
"systemach plików była odległością od początku katalogu do początku następnej " |
| 888 |
"struktury I<linux_dirent>; zob. B<readdir>(3). I<d_reclen> jest wielkością " |
| 889 |
"tej całej struktury I<linux_dirent>. I<d_name> jest nazwą pliku zakończoną " |
| 890 |
"znakiem NUL." |
| 891 |
|
| 892 |
#. type: Plain text |
| 893 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 894 |
msgid "" |
| 895 |
"glibc does not provide a wrapper for B<getdents>(); call B<getdents>() " |
| 896 |
"using B<syscall>(2). In that case you will need to define the " |
| 897 |
"I<linux_dirent> or I<linux_dirent64> structure yourself." |
| 898 |
msgstr "" |
| 899 |
"glibc nie udostępnia opakowania dla B<getdents>(); należy je wywołać za " |
| 900 |
"pomocą B<syscall>(2). W takim przypadku konieczne będzie samodzielne " |
| 901 |
"zdefiniowanie struktury I<linux_dirent> lub I<linux_dirent64>." |
| 902 |
|
| 903 |
#. type: TH |
| 904 |
#: fedora-44 fedora-rawhide |
| 905 |
#, no-wrap |
| 906 |
msgid "2024-11-17" |
| 907 |
msgstr "17 listopada 2024 r." |
| 908 |
|
| 909 |
#. type: TH |
| 910 |
#: fedora-44 fedora-rawhide |
| 911 |
#, no-wrap |
| 912 |
msgid "Linux man-pages 6.13" |
| 913 |
msgstr "Linux man-pages 6.13" |
| 914 |
|
| 915 |
#. type: TH |
| 916 |
#: mageia-cauldron |
| 917 |
#, no-wrap |
| 918 |
msgid "2026-02-08" |
| 919 |
msgstr "8 lutego 2026 r." |
| 920 |
|
| 921 |
#. type: TH |
| 922 |
#: mageia-cauldron |
| 923 |
#, no-wrap |
| 924 |
msgid "Linux man-pages 6.17" |
| 925 |
msgstr "Linux man-pages 6.17" |
| 926 |
|
| 927 |
#. type: TH |
| 928 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 929 |
#, no-wrap |
| 930 |
msgid "Linux man-pages (unreleased)" |
| 931 |
msgstr "Linux man-pages (niewydane)" |