diff options
Diffstat (limited to '')
-rw-r--r-- | po/pl/man2/getdents.2.po | 278 |
1 files changed, 245 insertions, 33 deletions
diff --git a/po/pl/man2/getdents.2.po b/po/pl/man2/getdents.2.po index d573d7a9..0e396389 100644 --- a/po/pl/man2/getdents.2.po +++ b/po/pl/man2/getdents.2.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: manpages-l10n\n" -"POT-Creation-Date: 2024-03-01 16:57+0100\n" -"PO-Revision-Date: 2024-03-10 11:35+0100\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 <michal.kulach@gmail.com>\n" "Language-Team: Polish <manpages-pl-list@lists.sourceforge.net>\n" "Language: pl\n" @@ -27,16 +27,16 @@ msgid "getdents" msgstr "getdents" #. type: TH -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable opensuse-tumbleweed #, no-wrap -msgid "2023-10-31" -msgstr "31 października 2023 r." +msgid "2024-05-02" +msgstr "2 maja 2024 r." #. type: TH -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable #, no-wrap -msgid "Linux man-pages 6.06" -msgstr "Linux man-pages 6.06" +msgid "Linux man-pages 6.8" +msgstr "Linux man-pages 6.8" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide @@ -176,13 +176,12 @@ msgid "The I<linux_dirent> structure is declared as follows:" msgstr "Struktura I<linux_dirent> jest zadeklarowana następująco:" #. type: Plain text -#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#: 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; /* Offset to next I<linux_dirent> */\n" +" unsigned long d_off; /* Not an offset; see below */\n" " unsigned short d_reclen; /* Length of this I<linux_dirent> */\n" " char d_name[]; /* Filename (null-terminated) */\n" " /* length is actually (d_reclen - 2 -\n" @@ -196,7 +195,7 @@ msgid "" msgstr "" "struct linux_dirent {\n" " unsigned long d_ino; /* Numer i-węzła */\n" -" unsigned long d_off; /* Przesun. do nast. I<linux_dirent> */\n" +" unsigned long d_off; /* Nie jest przesunięciem; zob. niżej */\n" " unsigned short d_reclen; /* Długość tego I<linux_dirent> */\n" " char d_name[]; /* Nazwa pliku (zakończ. znakiem null) */\n" " /* długość to faktycznie (d_reclen - 2 -\n" @@ -209,17 +208,20 @@ msgstr "" "}\n" #. type: Plain text -#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#: archlinux debian-unstable fedora-rawhide opensuse-tumbleweed msgid "" -"I<d_ino> is an inode number. I<d_off> is the distance from the start of the " -"directory to the start of the next I<linux_dirent>. I<d_reclen> is the size " -"of this entire I<linux_dirent>. I<d_name> is a null-terminated filename." +"I<d_ino> is an inode number. I<d_off> 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<linux_dirent>; see B<readdir>(3)B<.> I<d_reclen> is the size of this " +"entire I<linux_dirent>. I<d_name> is a null-terminated filename." msgstr "" -"I<d_ino> jest numerem i-węzła. I<d_off> jest odległością od początku " -"katalogu do początku następnej struktury I<linux_dirent>. I<d_reclen> jest " -"wielkością tej całej struktury I<linux_dirent>. I<d_name> jest nazwą pliku " -"zakończoną znakiem NUL." +"I<d_ino> jest numerem i-węzła. I<d_off> 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<linux_dirent>; zob. B<readdir>(3). I<d_reclen> jest wielkością " +"tej całej struktury I<linux_dirent>. I<d_name> jest nazwą pliku zakończoną " +"znakiem NUL." #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide @@ -398,13 +400,12 @@ msgstr "" "następującego typu:" #. type: Plain text -#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide -#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#: 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; /* 64-bit offset to next structure */\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" @@ -412,7 +413,7 @@ msgid "" 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" +" 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" @@ -638,8 +639,7 @@ msgid "Program source" msgstr "Kod źródłowy programu" #. type: Plain text -#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron -#: opensuse-tumbleweed +#: archlinux debian-unstable opensuse-tumbleweed #, no-wrap msgid "" "#define _GNU_SOURCE\n" @@ -650,6 +650,7 @@ msgid "" "#include E<lt>stdio.hE<gt>\n" "#include E<lt>stdlib.hE<gt>\n" "#include E<lt>sys/syscall.hE<gt>\n" +"#include E<lt>sys/types.hE<gt>\n" "#include E<lt>unistd.hE<gt>\n" "\\&\n" "struct linux_dirent {\n" @@ -712,6 +713,7 @@ msgstr "" "#include E<lt>stdio.hE<gt>\n" "#include E<lt>stdlib.hE<gt>\n" "#include E<lt>sys/syscall.hE<gt>\n" +"#include E<lt>sys/types.hE<gt>\n" "#include E<lt>unistd.hE<gt>\n" "\\&\n" "struct linux_dirent {\n" @@ -793,6 +795,70 @@ 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<linux_dirent> */\n" +" unsigned short d_reclen; /* Length of this I<linux_dirent> */\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<linux_dirent> */\n" +" unsigned short d_reclen; /* Długość tego I<linux_dirent> */\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<d_ino> is an inode number. I<d_off> is the distance from the start of the " +"directory to the start of the next I<linux_dirent>. I<d_reclen> is the size " +"of this entire I<linux_dirent>. I<d_name> is a null-terminated filename." +msgstr "" +"I<d_ino> jest numerem i-węzła. I<d_off> jest odległością od początku " +"katalogu do początku następnej struktury I<linux_dirent>. I<d_reclen> jest " +"wielkością tej całej struktury I<linux_dirent>. I<d_name> 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<getdents64>() was added in glibc 2.30; glibc does not " @@ -966,16 +1032,156 @@ msgstr "" "}\n" #. type: TH -#: debian-unstable opensuse-tumbleweed +#: fedora-40 mageia-cauldron #, no-wrap -msgid "2023-05-03" -msgstr "3 maja 2023 r." +msgid "2023-10-31" +msgstr "31 października 2023 r." #. type: TH -#: debian-unstable opensuse-tumbleweed +#: fedora-40 mageia-cauldron #, no-wrap -msgid "Linux man-pages 6.05.01" -msgstr "Linux man-pages 6.05.01" +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 E<lt>dirent.hE<gt> /* Defines DT_* constants */\n" +"#include E<lt>err.hE<gt>\n" +"#include E<lt>fcntl.hE<gt>\n" +"#include E<lt>stdint.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +"#include E<lt>sys/syscall.hE<gt>\n" +"#include E<lt>unistd.hE<gt>\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<gt> 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<lt> nread;) {\n" +" d = (struct linux_dirent *) (buf + bpos);\n" +" printf(\"%8lu \", d-E<gt>d_ino);\n" +" d_type = *(buf + bpos + d-E<gt>d_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-E<gt>d_reclen,\n" +" (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n" +" bpos += d-E<gt>d_reclen;\n" +" }\n" +" }\n" +"\\&\n" +" exit(EXIT_SUCCESS);\n" +"}\n" +msgstr "" +"#define _GNU_SOURCE\n" +"#include E<lt>dirent.hE<gt> /* Definiuje stałe DT_* */\n" +"#include E<lt>err.hE<gt>\n" +"#include E<lt>fcntl.hE<gt>\n" +"#include E<lt>stdint.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +"#include E<lt>sys/syscall.hE<gt>\n" +"#include E<lt>unistd.hE<gt>\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<gt> 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<lt> nread;) {\n" +" d = (struct linux_dirent *) (buf + bpos);\n" +" printf(\"%8lu \", d-E<gt>d_ino);\n" +" d_type = *(buf + bpos + d-E<gt>d_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-E<gt>d_reclen,\n" +" (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n" +" bpos += d-E<gt>d_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 @@ -988,3 +1194,9 @@ msgstr "30 marca 2023 r." #, 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)" |