summaryrefslogtreecommitdiffstats
path: root/templates/man2/close_range.2.pot
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:52:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:52:33 +0000
commit2c3307fb903f427be3d021c5780b75cac9af2ce8 (patch)
tree65cf431f40b7481d81ae2dfce9576342686448f7 /templates/man2/close_range.2.pot
parentReleasing progress-linux version 4.22.0-1~progress7.99u1. (diff)
downloadmanpages-l10n-2c3307fb903f427be3d021c5780b75cac9af2ce8.tar.xz
manpages-l10n-2c3307fb903f427be3d021c5780b75cac9af2ce8.zip
Merging upstream version 4.23.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'templates/man2/close_range.2.pot')
-rw-r--r--templates/man2/close_range.2.pot224
1 files changed, 204 insertions, 20 deletions
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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 E<lt>linux/close_range.hE<gt>>\n"
+msgid ""
+"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
+"B<#include E<lt>unistd.hE<gt>>\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 ""
-"B<int close_range(unsigned int >I<first>B<, unsigned int >I<last>B<,>\n"
-"B< unsigned int >I<flags>B<);>\n"
+"B<#include E<lt>linux/close_range.hE<gt>> /* Definition of B<CLOSE_RANGE_*>\n"
+" constants */\n"
+msgstr ""
+
+#. type: Plain text
+#: archlinux debian-unstable fedora-rawhide opensuse-tumbleweed
+#, no-wrap
+msgid "B<int close_range(unsigned int >I<first>B<, unsigned int >I<last>B<, int >I<flags>B<);>\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 E<lt>limits.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>sys/types.hE<gt>\n"
"#include E<lt>unistd.hE<gt>\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 E<lt>linux/close_range.hE<gt>>\n"
+msgstr ""
+
+#. type: Plain text
+#: debian-bookworm fedora-40 mageia-cauldron opensuse-leap-15-6
+#, no-wrap
+msgid ""
+"B<int close_range(unsigned int >I<first>B<, unsigned int >I<last>B<,>\n"
+"B< unsigned int >I<flags>B<);>\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 E<lt>dirent.hE<gt>\n"
+"#include E<lt>fcntl.hE<gt>\n"
+"#include E<lt>limits.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"
+"/* 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-E<gt>d_type == DT_LNK) {\n"
+" snprintf(path, sizeof(path), \"/proc/self/fd/%s\",\n"
+" dp-E<gt>d_name);\n"
+"\\&\n"
+" len = readlink(path, target, sizeof(target));\n"
+" printf(\"%s ==E<gt> %.*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<lt> 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 E<lt>dirent.hE<gt>\n"
+"#include E<lt>fcntl.hE<gt>\n"
+"#include E<lt>limits.hE<gt>\n"
+"#include E<lt>stdio.hE<gt>\n"
+"#include E<lt>stdlib.hE<gt>\n"
+"#include E<lt>unistd.hE<gt>\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-E<gt>d_type == DT_LNK) {\n"
+" snprintf(path, sizeof(path), \"/proc/self/fd/%s\",\n"
+" dp-E<gt>d_name);\n"
+"\\&\n"
+" len = readlink(path, target, sizeof(target));\n"
+" printf(\"%s ==E<gt> %.*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<lt> 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 ""