diff options
Diffstat (limited to '')
-rw-r--r-- | templates/man2/mmap.2.pot | 123 |
1 files changed, 107 insertions, 16 deletions
diff --git a/templates/man2/mmap.2.pot b/templates/man2/mmap.2.pot index 95199c9d..a87b1456 100644 --- a/templates/man2/mmap.2.pot +++ b/templates/man2/mmap.2.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2024-03-01 17:01+0100\n" +"POT-Creation-Date: 2024-06-01 06:03+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -24,15 +24,15 @@ msgid "mmap" msgstr "" #. type: TH -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable opensuse-tumbleweed #, no-wrap -msgid "2023-10-31" +msgid "2024-05-02" msgstr "" #. type: TH -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable #, no-wrap -msgid "Linux man-pages 6.06" +msgid "Linux man-pages 6.8" msgstr "" #. type: SH @@ -499,13 +499,15 @@ msgid "" msgstr "" #. type: TP -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed #, no-wrap msgid "B<MAP_HUGE_2MB>" msgstr "" #. type: TQ -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed #, no-wrap msgid "B<MAP_HUGE_1GB> (since Linux 3.8)" msgstr "" @@ -981,7 +983,8 @@ msgid "The operation was prevented by a file seal; see B<fcntl>(2)." msgstr "" #. type: Plain text -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed msgid "" "The B<MAP_HUGETLB> flag was specified, but the caller was not privileged " "(did not have the B<CAP_IPC_LOCK> capability) and is not a member of the " @@ -1433,8 +1436,7 @@ msgid "Program source" msgstr "" #. type: Plain text -#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron -#: opensuse-tumbleweed +#: archlinux debian-unstable opensuse-tumbleweed #, no-wrap msgid "" "#include E<lt>fcntl.hE<gt>\n" @@ -1442,6 +1444,7 @@ msgid "" "#include E<lt>stdlib.hE<gt>\n" "#include E<lt>sys/mman.hE<gt>\n" "#include E<lt>sys/stat.hE<gt>\n" +"#include E<lt>sys/types.hE<gt>\n" "#include E<lt>unistd.hE<gt>\n" "\\&\n" "#define handle_error(msg) \\e\n" @@ -1554,13 +1557,13 @@ msgid "Linux man-pages 6.03" msgstr "" #. type: TP -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "B<MAP_HUGE_2MB>, B<MAP_HUGE_1GB> (since Linux 3.8)" msgstr "" #. type: Plain text -#: debian-bookworm debian-unstable opensuse-leap-15-6 opensuse-tumbleweed +#: debian-bookworm opensuse-leap-15-6 msgid "" "The B<MAP_HUGETLB> flag was specified, but the caller was not privileged " "(did not have the B<CAP_IPC_LOCK> capability) and is not a member of the " @@ -1747,15 +1750,97 @@ msgid "" msgstr "" #. type: TH -#: debian-unstable opensuse-tumbleweed +#: fedora-40 fedora-rawhide mageia-cauldron #, no-wrap -msgid "2023-07-20" +msgid "2023-10-31" +msgstr "" + +#. type: TH +#: fedora-40 mageia-cauldron +#, no-wrap +msgid "Linux man-pages 6.06" +msgstr "" + +#. type: Plain text +#: fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "" +"#include E<lt>fcntl.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +"#include E<lt>sys/mman.hE<gt>\n" +"#include E<lt>sys/stat.hE<gt>\n" +"#include E<lt>unistd.hE<gt>\n" +"\\&\n" +"#define handle_error(msg) \\e\n" +" do { perror(msg); exit(EXIT_FAILURE); } while (0)\n" +"\\&\n" +"int\n" +"main(int argc, char *argv[])\n" +"{\n" +" int fd;\n" +" char *addr;\n" +" off_t offset, pa_offset;\n" +" size_t length;\n" +" ssize_t s;\n" +" struct stat sb;\n" +"\\&\n" +" if (argc E<lt> 3 || argc E<gt> 4) {\n" +" fprintf(stderr, \"%s file offset [length]\\en\", argv[0]);\n" +" exit(EXIT_FAILURE);\n" +" }\n" +"\\&\n" +" fd = open(argv[1], O_RDONLY);\n" +" if (fd == -1)\n" +" handle_error(\"open\");\n" +"\\&\n" +" if (fstat(fd, &sb) == -1) /* To obtain file size */\n" +" handle_error(\"fstat\");\n" +"\\&\n" +" offset = atoi(argv[2]);\n" +" pa_offset = offset & \\[ti](sysconf(_SC_PAGE_SIZE) - 1);\n" +" /* offset for mmap() must be page aligned */\n" +"\\&\n" +" if (offset E<gt>= sb.st_size) {\n" +" fprintf(stderr, \"offset is past end of file\\en\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +"\\&\n" +" if (argc == 4) {\n" +" length = atoi(argv[3]);\n" +" if (offset + length E<gt> sb.st_size)\n" +" length = sb.st_size - offset;\n" +" /* Can\\[aq]t display bytes past end of file */\n" +"\\&\n" +" } else { /* No length arg ==E<gt> display to end of file */\n" +" length = sb.st_size - offset;\n" +" }\n" +"\\&\n" +" addr = mmap(NULL, length + offset - pa_offset, PROT_READ,\n" +" MAP_PRIVATE, fd, pa_offset);\n" +" if (addr == MAP_FAILED)\n" +" handle_error(\"mmap\");\n" +"\\&\n" +" s = write(STDOUT_FILENO, addr + offset - pa_offset, length);\n" +" if (s != length) {\n" +" if (s == -1)\n" +" handle_error(\"write\");\n" +"\\&\n" +" fprintf(stderr, \"partial write\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +"\\&\n" +" munmap(addr, length + offset - pa_offset);\n" +" close(fd);\n" +"\\&\n" +" exit(EXIT_SUCCESS);\n" +"}\n" msgstr "" #. type: TH -#: debian-unstable opensuse-tumbleweed +#: fedora-rawhide #, no-wrap -msgid "Linux man-pages 6.05.01" +msgid "Linux man-pages 6.7" msgstr "" #. type: TH @@ -1769,3 +1854,9 @@ msgstr "" #, no-wrap msgid "Linux man-pages 6.04" msgstr "" + +#. type: TH +#: opensuse-tumbleweed +#, no-wrap +msgid "Linux man-pages (unreleased)" +msgstr "" |