From 2c3307fb903f427be3d021c5780b75cac9af2ce8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 17 Jun 2024 12:52:33 +0200 Subject: Merging upstream version 4.23.0. Signed-off-by: Daniel Baumann --- templates/man2/close_range.2.pot | 224 +++++++++++++++++++++++++++++++++++---- 1 file changed, 204 insertions(+), 20 deletions(-) (limited to 'templates/man2/close_range.2.pot') diff --git a/templates/man2/close_range.2.pot b/templates/man2/close_range.2.pot index a55fce74..bbc52caa 100644 --- a/templates/man2/close_range.2.pot +++ b/templates/man2/close_range.2.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2024-03-01 16:54+0100\n" +"POT-Creation-Date: 2024-06-01 05:45+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -24,15 +24,15 @@ msgid "close_range" 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 @@ -69,19 +69,25 @@ msgid "SYNOPSIS" msgstr "" #. 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 "B<#include Elinux/close_range.hE>\n" +msgid "" +"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" +"B<#include Eunistd.hE>\n" msgstr "" #. 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 "" -"BIB<, unsigned int >IB<,>\n" -"B< unsigned int >IB<);>\n" +"B<#include Elinux/close_range.hE> /* Definition of B\n" +" constants */\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-rawhide opensuse-tumbleweed +#, no-wrap +msgid "BIB<, unsigned int >IB<, int >IB<);>\n" msgstr "" #. type: SH @@ -401,8 +407,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 "" "#define _GNU_SOURCE\n" @@ -411,7 +416,7 @@ msgid "" "#include Elimits.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" "/* Show the contents of the symbolic links in /proc/self/fd */\n" @@ -465,7 +470,7 @@ msgid "" "\\&\n" " printf(\"========= About to call close_range() =======\\en\");\n" "\\&\n" -" if (syscall(SYS_close_range, 3, \\[ti]0U, 0) == -1) {\n" +" if (close_range(3, \\[ti]0U, 0) == -1) {\n" " perror(\"close_range\");\n" " exit(EXIT_FAILURE);\n" " }\n" @@ -501,6 +506,20 @@ msgstr "" msgid "Linux man-pages 6.03" msgstr "" +#. type: Plain text +#: debian-bookworm fedora-40 mageia-cauldron opensuse-leap-15-6 +#, no-wrap +msgid "B<#include Elinux/close_range.hE>\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm fedora-40 mageia-cauldron opensuse-leap-15-6 +#, no-wrap +msgid "" +"BIB<, unsigned int >IB<,>\n" +"B< unsigned int >IB<);>\n" +msgstr "" + #. type: SH #: debian-bookworm #, no-wrap @@ -657,15 +676,174 @@ msgid "" msgstr "" #. type: TH -#: debian-unstable opensuse-tumbleweed +#: fedora-40 mageia-cauldron #, no-wrap -msgid "2023-05-03" +msgid "2023-10-31" msgstr "" #. type: TH -#: debian-unstable opensuse-tumbleweed +#: fedora-40 mageia-cauldron #, no-wrap -msgid "Linux man-pages 6.05.01" +msgid "Linux man-pages 6.06" +msgstr "" + +#. type: Plain text +#: fedora-40 mageia-cauldron +#, no-wrap +msgid "" +"#define _GNU_SOURCE\n" +"#include Edirent.hE\n" +"#include Efcntl.hE\n" +"#include Elimits.hE\n" +"#include Estdio.hE\n" +"#include Estdlib.hE\n" +"#include Esys/syscall.hE\n" +"#include Eunistd.hE\n" +"\\&\n" +"/* Show the contents of the symbolic links in /proc/self/fd */\n" +"\\&\n" +"static void\n" +"show_fds(void)\n" +"{\n" +" DIR *dirp;\n" +" char path[PATH_MAX], target[PATH_MAX];\n" +" ssize_t len;\n" +" struct dirent *dp;\n" +"\\&\n" +" dirp = opendir(\"/proc/self/fd\");\n" +" if (dirp == NULL) {\n" +" perror(\"opendir\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +"\\&\n" +" for (;;) {\n" +" dp = readdir(dirp);\n" +" if (dp == NULL)\n" +" break;\n" +"\\&\n" +" if (dp-Ed_type == DT_LNK) {\n" +" snprintf(path, sizeof(path), \"/proc/self/fd/%s\",\n" +" dp-Ed_name);\n" +"\\&\n" +" len = readlink(path, target, sizeof(target));\n" +" printf(\"%s ==E %.*s\\en\", path, (int) len, target);\n" +" }\n" +" }\n" +"\\&\n" +" closedir(dirp);\n" +"}\n" +"\\&\n" +"int\n" +"main(int argc, char *argv[])\n" +"{\n" +" int fd;\n" +"\\&\n" +" for (size_t j = 1; j E argc; j++) {\n" +" fd = open(argv[j], O_RDONLY);\n" +" if (fd == -1) {\n" +" perror(argv[j]);\n" +" exit(EXIT_FAILURE);\n" +" }\n" +" printf(\"%s opened as FD %d\\en\", argv[j], fd);\n" +" }\n" +"\\&\n" +" show_fds();\n" +"\\&\n" +" printf(\"========= About to call close_range() =======\\en\");\n" +"\\&\n" +" if (syscall(SYS_close_range, 3, \\[ti]0U, 0) == -1) {\n" +" perror(\"close_range\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +"\\&\n" +" show_fds();\n" +" exit(EXIT_FAILURE);\n" +"}\n" +msgstr "" + +#. type: TH +#: fedora-rawhide +#, no-wrap +msgid "2024-02-25" +msgstr "" + +#. type: TH +#: fedora-rawhide +#, no-wrap +msgid "Linux man-pages 6.7" +msgstr "" + +#. type: Plain text +#: fedora-rawhide +#, no-wrap +msgid "" +"#define _GNU_SOURCE\n" +"#include Edirent.hE\n" +"#include Efcntl.hE\n" +"#include Elimits.hE\n" +"#include Estdio.hE\n" +"#include Estdlib.hE\n" +"#include Eunistd.hE\n" +"\\&\n" +"/* Show the contents of the symbolic links in /proc/self/fd */\n" +"\\&\n" +"static void\n" +"show_fds(void)\n" +"{\n" +" DIR *dirp;\n" +" char path[PATH_MAX], target[PATH_MAX];\n" +" ssize_t len;\n" +" struct dirent *dp;\n" +"\\&\n" +" dirp = opendir(\"/proc/self/fd\");\n" +" if (dirp == NULL) {\n" +" perror(\"opendir\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +"\\&\n" +" for (;;) {\n" +" dp = readdir(dirp);\n" +" if (dp == NULL)\n" +" break;\n" +"\\&\n" +" if (dp-Ed_type == DT_LNK) {\n" +" snprintf(path, sizeof(path), \"/proc/self/fd/%s\",\n" +" dp-Ed_name);\n" +"\\&\n" +" len = readlink(path, target, sizeof(target));\n" +" printf(\"%s ==E %.*s\\en\", path, (int) len, target);\n" +" }\n" +" }\n" +"\\&\n" +" closedir(dirp);\n" +"}\n" +"\\&\n" +"int\n" +"main(int argc, char *argv[])\n" +"{\n" +" int fd;\n" +"\\&\n" +" for (size_t j = 1; j E argc; j++) {\n" +" fd = open(argv[j], O_RDONLY);\n" +" if (fd == -1) {\n" +" perror(argv[j]);\n" +" exit(EXIT_FAILURE);\n" +" }\n" +" printf(\"%s opened as FD %d\\en\", argv[j], fd);\n" +" }\n" +"\\&\n" +" show_fds();\n" +"\\&\n" +" printf(\"========= About to call close_range() =======\\en\");\n" +"\\&\n" +" if (close_range(3, \\[ti]0U, 0) == -1) {\n" +" perror(\"close_range\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +"\\&\n" +" show_fds();\n" +" exit(EXIT_FAILURE);\n" +"}\n" msgstr "" #. type: TH @@ -679,3 +857,9 @@ msgstr "" #, no-wrap msgid "Linux man-pages 6.04" msgstr "" + +#. type: TH +#: opensuse-tumbleweed +#, no-wrap +msgid "Linux man-pages (unreleased)" +msgstr "" -- cgit v1.2.3