# Polish translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # Przemek Borys , 1998. # Andrzej Krzysztofowicz , 2002. # Michał Kułach , 2024. msgid "" msgstr "" "Project-Id-Version: manpages-l10n\n" "POT-Creation-Date: 2024-06-01 05:52+0200\n" "PO-Revision-Date: 2024-06-02 12:39+0200\n" "Last-Translator: Michał Kułach \n" "Language-Team: Polish \n" "Language: pl\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%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" "X-Generator: Lokalize 22.12.3\n" #. type: TH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "getdents" msgstr "getdents" #. type: TH #: archlinux debian-unstable opensuse-tumbleweed #, no-wrap msgid "2024-05-02" msgstr "2 maja 2024 r." #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.8" msgstr "Linux man-pages 6.8" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "NAZWA" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "getdents, getdents64 - get directory entries" msgstr "getdents, getdents64 - pobiera wpisy z katalogu" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "BIBLIOTEKA" #. 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, I<-lc>)" msgstr "Standardowa biblioteka C (I, 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 "SKŁADNIA" #. 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 Esys/syscall.hE> /* Definition of B constants */\n" "B<#include Eunistd.hE>\n" msgstr "" "B<#include Esys/syscall.hE >/* Definicja stałych B */\n" "B<#include Eunistd.hE>\n" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "" "BIB<, struct linux_dirent *>IB<,>\n" "B< unsigned int >IB<);>\n" msgstr "" "BIB<, struct linux_dirent *>IB<,>\n" "B< unsigned int >IB<);>\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<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" "B<#include Edirent.hE>\n" msgstr "" "B<#define _GNU_SOURCE> /* Zob. feature_test_macros(7) */\n" "B<#include Edirent.hE>\n" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "BIB<, void >IB<[.>IB<], size_t >IB<);>\n" msgstr "BIB<, void >IB<[.>IB<], size_t >IB<);>\n" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "I: glibc provides no wrapper for B(), necessitating the use " "of B(2)." msgstr "" "I: glibc nie udostępnia opakowania dla B(), co wymusza " "użycie B(2)." #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "I: There is no definition of I in glibc; see " "NOTES." msgstr "I: W glibc brak definicji I; zob. UWAGI." #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "OPIS" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "These are not the interfaces you are interested in. Look at B(3) " "for the POSIX-conforming C library interface. This page documents the bare " "kernel system call interfaces." msgstr "" "Nie są to interfejsy, które cię interesują. Opis implementacji interfejsu " "zgodnego z POSIX w bibliotece C znajduje się w B(3). Niniejsza " "strona opisuje nagi interfejs wywołania systemowego." #. type: SS #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "getdents()" msgstr "getdents()" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "The system call B() reads several I structures from " "the directory referred to by the open file descriptor I into the buffer " "pointed to by I. The argument I specifies the size of that " "buffer." msgstr "" "Wywołanie systemowe B() odczytuje kolejne struktury " "I z katalogu wskazywanego przez przez deskryptor otwartego " "pliku I do bufora wskazywanego przez I. Argument I określa " "rozmiar tego bufora." #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "The I structure is declared as follows:" msgstr "Struktura I jest zadeklarowana następująco:" #. type: Plain text #: archlinux debian-unstable fedora-rawhide opensuse-tumbleweed #, no-wrap msgid "" "struct linux_dirent {\n" " unsigned long d_ino; /* Inode number */\n" " unsigned long d_off; /* Not an offset; see below */\n" " unsigned short d_reclen; /* Length of this I */\n" " char d_name[]; /* Filename (null-terminated) */\n" " /* length is actually (d_reclen - 2 -\n" " offsetof(struct linux_dirent, d_name)) */\n" " /*\n" " char pad; // Zero padding byte\n" " char d_type; // File type (only since Linux\n" " // 2.6.4); offset is (d_reclen - 1)\n" " */\n" "}\n" msgstr "" "struct linux_dirent {\n" " unsigned long d_ino; /* Numer i-węzła */\n" " unsigned long d_off; /* Nie jest przesunięciem; zob. niżej */\n" " unsigned short d_reclen; /* Długość tego I */\n" " char d_name[]; /* Nazwa pliku (zakończ. znakiem null) */\n" " /* długość to faktycznie (d_reclen - 2 -\n" " offsetof(struct linux_dirent, d_name)) */\n" " /*\n" " char pad; // Zerowy bajt wyrównania\n" " char d_type; // Typ pliku (tylko od Linuksa\n" " // 2.6.4); przesunięciem jest (d_reclen - 1)\n" " */\n" "}\n" #. type: Plain text #: archlinux debian-unstable fedora-rawhide opensuse-tumbleweed msgid "" "I is an inode number. I is a filesystem-specific value with " "no specific meaning to user space, though on older filesystems it used to be " "the distance from the start of the directory to the start of the next " "I; see B(3)B<.> I is the size of this " "entire I. I is a null-terminated filename." msgstr "" "I jest numerem i-węzła. I jest wartością zależną od systemu " "plików, która nie ma znaczenia dla przestrzeni użytkownika, choć w starszych " "systemach plików była odległością od początku katalogu do początku następnej " "struktury I; zob. B(3). I jest wielkością " "tej całej struktury I. I jest nazwą pliku zakończoną " "znakiem NUL." #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "I is a byte at the end of the structure that indicates the file " "type. It contains one of the following values (defined in Idirent." "hE>):" msgstr "" "I jest bajtem na końcu struktury wskazującym typ pliku. Zawiera " "jedną z następujących wartości (zdefiniowanym w Idirent.hE>):" #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "This is a block device." msgstr "Jest to urządzenie blokowe" #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "This is a character device." msgstr "Jest to urządzenie znakowe." #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "This is a directory." msgstr "Jest to katalog." #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "This is a named pipe (FIFO)." msgstr "Jest to potok nazwany (FIFO)." #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "This is a symbolic link." msgstr "Jest to dowiązanie symboliczne." #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "This is a regular file." msgstr "Jest to zwykły plik." #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "This is a UNIX domain socket." msgstr "Jest to gniazdo dziedziny Uniksa." #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "The file type is unknown." msgstr "Typ pliku jest nieznany." #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "The I field is implemented since Linux 2.6.4. It occupies a space " "that was previously a zero-filled padding byte in the I " "structure. Thus, on kernels up to and including Linux 2.6.3, attempting to " "access this field always provides the value 0 (B)." msgstr "" "Pole I zaimplementowano od Linuksa 2.6.4. Zajmuje miejsce, które " "wcześniej zajmował zerowy bajt wypełnienia w strukturze I. Z " "tego względu jądra do Linuksa 2.6.3, próbujące uzyskać dostęp do tego pola " "zawsze zwracają wartość 0 (B)." #. kernel 2.6.27 #. The same sentence is in readdir.2 #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) " "have full support for returning the file type in I. All " "applications must properly handle a return of B." msgstr "" "Obecnie jedynie niektóre systemy plików (m.in Btrfs, ext2, ext3 i ext4) " "obsługują w pełni zwracanie typu pliku w I. Wszystkie programy muszą " "poprawnie obsługiwać zwrócenie wartości B." #. type: SS #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "getdents64()" msgstr "getdents64()" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "The original Linux B() system call did not handle large " "filesystems and large file offsets. Consequently, Linux 2.4 added " "B(), with wider types for the I and I fields. In " "addition, B() supports an explicit I field." msgstr "" "Pierwotne, linuksowe wywołanie B() nie obsługiwało dużych systemów " "plików i dużych przesunięć pliku. Z tego powodu, Linux 2.4 dodał " "B(), z szerszymi typami pól I i I. Dodatkowo, " "B() obsługuje wprost pole I." #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "The B() system call is like B(), except that its " "second argument is a pointer to a buffer containing structures of the " "following type:" msgstr "" "Wywołanie systemowe B() zachowuje się jak B(), tyle że " "jego drugi argument jest wskaźnikiem do bufora zawierającego strukturę " "następującego typu:" #. type: Plain text #: archlinux debian-unstable fedora-rawhide opensuse-tumbleweed #, no-wrap msgid "" "struct linux_dirent64 {\n" " ino64_t d_ino; /* 64-bit inode number */\n" " off64_t d_off; /* Not an offset; see getdents() */\n" " unsigned short d_reclen; /* Size of this dirent */\n" " unsigned char d_type; /* File type */\n" " char d_name[]; /* Filename (null-terminated) */\n" "};\n" msgstr "" "struct linux_dirent64 {\n" " ino64_t d_ino; /* 64-bitowy numer i-węzła */\n" " off64_t d_off; /* Nie jest przesunięciem, zob. getdents() */\n" " unsigned short d_reclen; /* Rozmiar tego dirent */\n" " unsigned char d_type; /* Typ pliku */\n" " char d_name[]; /* Nazwa pliku (zakończona null) */\n" "};\n" #. 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 "WARTOŚĆ ZWRACANA" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "On success, the number of bytes read is returned. On end of directory, 0 is " "returned. On error, -1 is returned, and I is set to indicate the " "error." msgstr "" "Po pomyślnym zakończeniu zwracana jest ilość odczytanych bajtów. Na końcu " "katalogu zwracane jest 0. Przy błędzie zwracane jest -1 i ustawiane I " "wskazując błąd." #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "BŁĘDY" #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "Invalid file descriptor I." msgstr "Nieprawidłowy deskryptor I." #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "Argument points outside the calling process's address space." msgstr "Argument wskazuje poza przestrzeń adresową wywołującego procesu." #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "Result buffer is too small." msgstr "Bufor na wynik jest za mały." #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "No such directory." msgstr "Nie ma takiego katalogu." #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "File descriptor does not refer to a directory." msgstr "Deskryptor pliku nie odnosi się do katalogu." #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "STANDARDY" #. type: Plain text #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-leap-15-6 opensuse-tumbleweed msgid "None." msgstr "Brak." #. type: SH #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "HISTORIA" #. SVr4 documents additional ENOLINK, EIO error conditions. #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "SVr4." msgstr "SVr4." #. type: TP #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "B()" #. type: Plain text #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-leap-15-6 opensuse-tumbleweed msgid "glibc 2.30." msgstr "glibc 2.30." #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "UWAGI" #. type: Plain text #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-leap-15-6 opensuse-tumbleweed msgid "" "glibc does not provide a wrapper for B(); call B() " "using B(2). In that case you will need to define the " "I or I structure yourself." msgstr "" "glibc nie udostępnia opakowania dla B(); należy je wywołać za " "pomocą B(2). W takim przypadku konieczne będzie samodzielne " "zdefiniowanie struktury I lub I." #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "Probably, you want to use B(3) instead of these system calls." msgstr "" "Zamiast opisywanych wywołań systemowych, prawdopodobnie lepszym pomysłem " "będzie użycie B(3)." #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "These calls supersede B(2)." msgstr "Te wywołania zastępują B(2)." #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "PRZYKŁADY" #. FIXME The example program needs to be revised, since it uses the older #. getdents() system call and the structure with smaller field widths. #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "The program below demonstrates the use of B(). The following " "output shows an example of what we see when running this program on an ext2 " "directory:" msgstr "" "Program poniżej demonstruje użycie B(). Poniższe wyjście pokazuje " "przykład, w którym można zaobserwować działanie tego programu w katalogu " "ext2:" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "" "$B< ./a.out /testfs/>\n" "--------------- nread=120 ---------------\n" "inode# file type d_reclen d_off d_name\n" " 2 directory 16 12 .\n" " 2 directory 16 24 ..\n" " 11 directory 24 44 lost+found\n" " 12 regular 16 56 a\n" " 228929 directory 16 68 sub\n" " 16353 directory 16 80 sub2\n" " 130817 directory 16 4096 sub3\n" msgstr "" "$B< ./a.out /testfs/>\n" "--------------- nread=120 ---------------\n" "i-węzeł# typ pliku d_reclen d_off d_name\n" " 2 katalog 16 12 .\n" " 2 katalog 16 24 ..\n" " 11 katalog 24 44 lost+found\n" " 12 zwykły 16 56 a\n" " 228929 katalog 16 68 sub\n" " 16353 katalog 16 80 sub2\n" " 130817 katalog 16 4096 sub3\n" #. type: SS #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "Program source" msgstr "Kod źródłowy programu" #. type: Plain text #: archlinux debian-unstable opensuse-tumbleweed #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Edirent.hE /* Defines DT_* constants */\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/syscall.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "struct linux_dirent {\n" " unsigned long d_ino;\n" " off_t d_off;\n" " unsigned short d_reclen;\n" " char d_name[];\n" "};\n" "\\&\n" "#define BUF_SIZE 1024\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " char d_type;\n" " char buf[BUF_SIZE];\n" " long nread;\n" " struct linux_dirent *d;\n" "\\&\n" " fd = open(argc E 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"open\");\n" "\\&\n" " for (;;) {\n" " nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n" " if (nread == -1)\n" " err(EXIT_FAILURE, \"getdents\");\n" "\\&\n" " if (nread == 0)\n" " break;\n" "\\&\n" " printf(\"--------------- nread=%ld ---------------\\en\", nread);\n" " printf(\"inode# file type d_reclen d_off d_name\\en\");\n" " for (size_t bpos = 0; bpos E nread;) {\n" " d = (struct linux_dirent *) (buf + bpos);\n" " printf(\"%8lu \", d-Ed_ino);\n" " d_type = *(buf + bpos + d-Ed_reclen - 1);\n" " printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n" " (d_type == DT_DIR) ? \"directory\" :\n" " (d_type == DT_FIFO) ? \"FIFO\" :\n" " (d_type == DT_SOCK) ? \"socket\" :\n" " (d_type == DT_LNK) ? \"symlink\" :\n" " (d_type == DT_BLK) ? \"block dev\" :\n" " (d_type == DT_CHR) ? \"char dev\" : \"???\");\n" " printf(\"%4d %10jd %s\\en\", d-Ed_reclen,\n" " (intmax_t) d-Ed_off, d-Ed_name);\n" " bpos += d-Ed_reclen;\n" " }\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _GNU_SOURCE\n" "#include Edirent.hE /* Definiuje stałe DT_* */\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/syscall.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "struct linux_dirent {\n" " unsigned long d_ino;\n" " off_t d_off;\n" " unsigned short d_reclen;\n" " char d_name[];\n" "};\n" "\\&\n" "#define BUF_SIZE 1024\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " char d_type;\n" " char buf[BUF_SIZE];\n" " long nread;\n" " struct linux_dirent *d;\n" "\\&\n" " fd = open(argc E 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"open\");\n" "\\&\n" " for (;;) {\n" " nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n" " if (nread == -1)\n" " err(EXIT_FAILURE, \"getdents\");\n" "\\&\n" " if (nread == 0)\n" " break;\n" "\\&\n" " printf(\"--------------- nread=%ld ---------------\\en\", nread);\n" " printf(\"i-węzeł# typ pliku d_reclen d_off d_name\\en\");\n" " for (size_t bpos = 0; bpos E nread;) {\n" " d = (struct linux_dirent *) (buf + bpos);\n" " printf(\"%8lu \", d-Ed_ino);\n" " d_type = *(buf + bpos + d-Ed_reclen - 1);\n" " printf(\"%-10s \", (d_type == DT_REG) ? \"zwykły\" :\n" " (d_type == DT_DIR) ? \"katalog\" :\n" " (d_type == DT_FIFO) ? \"FIFO\" :\n" " (d_type == DT_SOCK) ? \"gniazdo\" :\n" " (d_type == DT_LNK) ? \"dow. symbol.\" :\n" " (d_type == DT_BLK) ? \"urz. blok.\" :\n" " (d_type == DT_CHR) ? \"urz. znak.\" : \"???\");\n" " printf(\"%4d %10jd %s\\en\", d-Ed_reclen,\n" " (intmax_t) d-Ed_off, d-Ed_name);\n" " bpos += d-Ed_reclen;\n" " }\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. 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 "ZOBACZ TAKŻE" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "B(2), B(3), B(7)" msgstr "B(2), B(3), B(7)" #. type: TH #: debian-bookworm #, no-wrap msgid "2023-02-05" msgstr "5 lutego 2023 r." #. type: TH #: debian-bookworm #, no-wrap msgid "Linux man-pages 6.03" msgstr "Linux man-pages 6.03" #. type: Plain text #: debian-bookworm fedora-40 mageia-cauldron opensuse-leap-15-6 #, no-wrap msgid "" "struct linux_dirent {\n" " unsigned long d_ino; /* Inode number */\n" " unsigned long d_off; /* Offset to next I */\n" " unsigned short d_reclen; /* Length of this I */\n" " char d_name[]; /* Filename (null-terminated) */\n" " /* length is actually (d_reclen - 2 -\n" " offsetof(struct linux_dirent, d_name)) */\n" " /*\n" " char pad; // Zero padding byte\n" " char d_type; // File type (only since Linux\n" " // 2.6.4); offset is (d_reclen - 1)\n" " */\n" "}\n" msgstr "" "struct linux_dirent {\n" " unsigned long d_ino; /* Numer i-węzła */\n" " unsigned long d_off; /* Przesun. do nast. I */\n" " unsigned short d_reclen; /* Długość tego I */\n" " char d_name[]; /* Nazwa pliku (zakończ. znakiem null) */\n" " /* długość to faktycznie (d_reclen - 2 -\n" " offsetof(struct linux_dirent, d_name)) */\n" " /*\n" " char pad; // Zerowy bajt wyrównania\n" " char d_type; // Typ pliku (tylko od Linuksa\n" " // 2.6.4); przesunięciem jest (d_reclen - 1)\n" " */\n" "}\n" #. type: Plain text #: debian-bookworm fedora-40 mageia-cauldron opensuse-leap-15-6 msgid "" "I is an inode number. I is the distance from the start of the " "directory to the start of the next I. I is the size " "of this entire I. I is a null-terminated filename." msgstr "" "I jest numerem i-węzła. I jest odległością od początku " "katalogu do początku następnej struktury I. I jest " "wielkością tej całej struktury I. I jest nazwą pliku " "zakończoną znakiem NUL." #. type: Plain text #: debian-bookworm fedora-40 mageia-cauldron opensuse-leap-15-6 #, no-wrap msgid "" "struct linux_dirent64 {\n" " ino64_t d_ino; /* 64-bit inode number */\n" " off64_t d_off; /* 64-bit offset to next structure */\n" " unsigned short d_reclen; /* Size of this dirent */\n" " unsigned char d_type; /* File type */\n" " char d_name[]; /* Filename (null-terminated) */\n" "};\n" msgstr "" "struct linux_dirent64 {\n" " ino64_t d_ino; /* 64-bitowy numer i-węzła */\n" " off64_t d_off; /* 64-bitowy przesun. do następnej strukt. */\n" " unsigned short d_reclen; /* Rozmiar tego dirent */\n" " unsigned char d_type; /* Typ pliku */\n" " char d_name[]; /* Nazwa pliku (zakończona null) */\n" "};\n" #. type: Plain text #: debian-bookworm msgid "" "Library support for B() was added in glibc 2.30; glibc does not " "provide a wrapper for B(); call B() (or " "B() on earlier glibc versions) using B(2). In that " "case you will need to define the I or I " "structure yourself." msgstr "" "Obsługę biblioteczną dla B() dodano w glibc 2.30; glibc nie " "udostępnia opakowania dla B(); należy je (lub B() we " "wcześniejszych wersjach glibc) wywołać za pomocą B(2). W takim " "przypadku konieczne będzie samodzielne zdefiniowanie struktury " "I lub I." #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Edirent.hE /* Defines DT_* constants */\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/syscall.hE\n" "#include Eunistd.hE\n" msgstr "" "#define _GNU_SOURCE\n" "#include Edirent.hE /* Definiuje stałe DT_* */\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/syscall.hE\n" "#include Eunistd.hE\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "struct linux_dirent {\n" " unsigned long d_ino;\n" " off_t d_off;\n" " unsigned short d_reclen;\n" " char d_name[];\n" "};\n" msgstr "" "struct linux_dirent {\n" " unsigned long d_ino;\n" " off_t d_off;\n" " unsigned short d_reclen;\n" " char d_name[];\n" "};\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "#define BUF_SIZE 1024\n" msgstr "#define BUF_SIZE 1024\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " char d_type;\n" " char buf[BUF_SIZE];\n" " long nread;\n" " struct linux_dirent *d;\n" msgstr "" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " char d_type;\n" " char buf[BUF_SIZE];\n" " long nread;\n" " struct linux_dirent *d;\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " fd = open(argc E 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"open\");\n" msgstr "" " fd = open(argc E 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"open\");\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " for (;;) {\n" " nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n" " if (nread == -1)\n" " err(EXIT_FAILURE, \"getdents\");\n" msgstr "" " for (;;) {\n" " nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n" " if (nread == -1)\n" " err(EXIT_FAILURE, \"getdents\");\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " if (nread == 0)\n" " break;\n" msgstr "" " if (nread == 0)\n" " break;\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " printf(\"--------------- nread=%ld ---------------\\en\", nread);\n" " printf(\"inode# file type d_reclen d_off d_name\\en\");\n" " for (size_t bpos = 0; bpos E nread;) {\n" " d = (struct linux_dirent *) (buf + bpos);\n" " printf(\"%8lu \", d-Ed_ino);\n" " d_type = *(buf + bpos + d-Ed_reclen - 1);\n" " printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n" " (d_type == DT_DIR) ? \"directory\" :\n" " (d_type == DT_FIFO) ? \"FIFO\" :\n" " (d_type == DT_SOCK) ? \"socket\" :\n" " (d_type == DT_LNK) ? \"symlink\" :\n" " (d_type == DT_BLK) ? \"block dev\" :\n" " (d_type == DT_CHR) ? \"char dev\" : \"???\");\n" " printf(\"%4d %10jd %s\\en\", d-Ed_reclen,\n" " (intmax_t) d-Ed_off, d-Ed_name);\n" " bpos += d-Ed_reclen;\n" " }\n" " }\n" msgstr "" " printf(\"--------------- nread=%ld ---------------\\en\", nread);\n" " printf(\"i-węzeł# typ pliku d_reclen d_off d_name\\en\");\n" " for (size_t bpos = 0; bpos E nread;) {\n" " d = (struct linux_dirent *) (buf + bpos);\n" " printf(\"%8lu \", d-Ed_ino);\n" " d_type = *(buf + bpos + d-Ed_reclen - 1);\n" " printf(\"%-10s \", (d_type == DT_REG) ? \"zwykły\" :\n" " (d_type == DT_DIR) ? \"katalog\" :\n" " (d_type == DT_FIFO) ? \"FIFO\" :\n" " (d_type == DT_SOCK) ? \"gniazdo\" :\n" " (d_type == DT_LNK) ? \"dow. symb\" :\n" " (d_type == DT_BLK) ? \"urz. blok.\" :\n" " (d_type == DT_CHR) ? \"urz. znak.\" : \"???\");\n" " printf(\"%4d %10jd %s\\en\", d-Ed_reclen,\n" " (intmax_t) d-Ed_off, d-Ed_name);\n" " bpos += d-Ed_reclen;\n" " }\n" " }\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: fedora-40 mageia-cauldron #, no-wrap msgid "2023-10-31" msgstr "31 października 2023 r." #. type: TH #: fedora-40 mageia-cauldron #, no-wrap msgid "Linux man-pages 6.06" msgstr "Linux man-pages 6.06" #. type: Plain text #: fedora-40 fedora-rawhide mageia-cauldron #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Edirent.hE /* Defines DT_* constants */\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/syscall.hE\n" "#include Eunistd.hE\n" "\\&\n" "struct linux_dirent {\n" " unsigned long d_ino;\n" " off_t d_off;\n" " unsigned short d_reclen;\n" " char d_name[];\n" "};\n" "\\&\n" "#define BUF_SIZE 1024\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " char d_type;\n" " char buf[BUF_SIZE];\n" " long nread;\n" " struct linux_dirent *d;\n" "\\&\n" " fd = open(argc E 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"open\");\n" "\\&\n" " for (;;) {\n" " nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n" " if (nread == -1)\n" " err(EXIT_FAILURE, \"getdents\");\n" "\\&\n" " if (nread == 0)\n" " break;\n" "\\&\n" " printf(\"--------------- nread=%ld ---------------\\en\", nread);\n" " printf(\"inode# file type d_reclen d_off d_name\\en\");\n" " for (size_t bpos = 0; bpos E nread;) {\n" " d = (struct linux_dirent *) (buf + bpos);\n" " printf(\"%8lu \", d-Ed_ino);\n" " d_type = *(buf + bpos + d-Ed_reclen - 1);\n" " printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n" " (d_type == DT_DIR) ? \"directory\" :\n" " (d_type == DT_FIFO) ? \"FIFO\" :\n" " (d_type == DT_SOCK) ? \"socket\" :\n" " (d_type == DT_LNK) ? \"symlink\" :\n" " (d_type == DT_BLK) ? \"block dev\" :\n" " (d_type == DT_CHR) ? \"char dev\" : \"???\");\n" " printf(\"%4d %10jd %s\\en\", d-Ed_reclen,\n" " (intmax_t) d-Ed_off, d-Ed_name);\n" " bpos += d-Ed_reclen;\n" " }\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _GNU_SOURCE\n" "#include Edirent.hE /* Definiuje stałe DT_* */\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/syscall.hE\n" "#include Eunistd.hE\n" "\\&\n" "struct linux_dirent {\n" " unsigned long d_ino;\n" " off_t d_off;\n" " unsigned short d_reclen;\n" " char d_name[];\n" "};\n" "\\&\n" "#define BUF_SIZE 1024\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " char d_type;\n" " char buf[BUF_SIZE];\n" " long nread;\n" " struct linux_dirent *d;\n" "\\&\n" " fd = open(argc E 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"open\");\n" "\\&\n" " for (;;) {\n" " nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n" " if (nread == -1)\n" " err(EXIT_FAILURE, \"getdents\");\n" "\\&\n" " if (nread == 0)\n" " break;\n" "\\&\n" " printf(\"--------------- nread=%ld ---------------\\en\", nread);\n" " printf(\"i-węzeł# typ pliku d_reclen d_off d_name\\en\");\n" " for (size_t bpos = 0; bpos E nread;) {\n" " d = (struct linux_dirent *) (buf + bpos);\n" " printf(\"%8lu \", d-Ed_ino);\n" " d_type = *(buf + bpos + d-Ed_reclen - 1);\n" " printf(\"%-10s \", (d_type == DT_REG) ? \"zwykły\" :\n" " (d_type == DT_DIR) ? \"katalog\" :\n" " (d_type == DT_FIFO) ? \"FIFO\" :\n" " (d_type == DT_SOCK) ? \"gniazdo\" :\n" " (d_type == DT_LNK) ? \"dow. symbol.\" :\n" " (d_type == DT_BLK) ? \"urz. blok.\" :\n" " (d_type == DT_CHR) ? \"urz. znak.\" : \"???\");\n" " printf(\"%4d %10jd %s\\en\", d-Ed_reclen,\n" " (intmax_t) d-Ed_off, d-Ed_name);\n" " bpos += d-Ed_reclen;\n" " }\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: fedora-rawhide #, no-wrap msgid "2024-02-25" msgstr "25 lutego 2024 r." #. type: TH #: fedora-rawhide #, no-wrap msgid "Linux man-pages 6.7" msgstr "Linux man-pages 6.7" #. type: TH #: opensuse-leap-15-6 #, no-wrap msgid "2023-03-30" msgstr "30 marca 2023 r." #. type: TH #: opensuse-leap-15-6 #, no-wrap msgid "Linux man-pages 6.04" msgstr "Linux man-pages 6.04" #. type: TH #: opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "Linux man-pages (niewydane)"