summaryrefslogtreecommitdiffstats
path: root/po/ko/man2/mmap.2.po
diff options
context:
space:
mode:
Diffstat (limited to 'po/ko/man2/mmap.2.po')
-rw-r--r--po/ko/man2/mmap.2.po132
1 files changed, 113 insertions, 19 deletions
diff --git a/po/ko/man2/mmap.2.po b/po/ko/man2/mmap.2.po
index 7224828e..c336acc5 100644
--- a/po/ko/man2/mmap.2.po
+++ b/po/ko/man2/mmap.2.po
@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: manpages-l10n\n"
-"POT-Creation-Date: 2024-03-01 17:01+0100\n"
+"POT-Creation-Date: 2024-06-01 06:03+0200\n"
"PO-Revision-Date: 2000-05-14 08:57+0900\n"
"Last-Translator: 정강훈 <skyeyes@soback.kornet.net>\n"
"Language-Team: Korean <translation-team-ko@googlegroups.com>\n"
@@ -23,16 +23,16 @@ msgid "mmap"
msgstr "mmap"
#. type: TH
-#: archlinux fedora-40 fedora-rawhide mageia-cauldron
+#: archlinux debian-unstable opensuse-tumbleweed
#, no-wrap
-msgid "2023-10-31"
-msgstr "2023년 10월 31일"
+msgid "2024-05-02"
+msgstr "2024년 5월 2일"
#. type: TH
-#: archlinux fedora-40 fedora-rawhide mageia-cauldron
+#: archlinux debian-unstable
#, fuzzy, no-wrap
#| msgid "Linux man-pages 6.03"
-msgid "Linux man-pages 6.06"
+msgid "Linux man-pages 6.8"
msgstr "Linux man-pages 6.03"
#. type: SH
@@ -502,14 +502,16 @@ msgid ""
msgstr ""
#. type: TP
-#: archlinux fedora-40 fedora-rawhide mageia-cauldron
+#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
+#: opensuse-tumbleweed
#, fuzzy, no-wrap
#| msgid "B<MAP_SHARED>"
msgid "B<MAP_HUGE_2MB>"
msgstr "B<MAP_SHARED>"
#. 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 ""
@@ -1021,7 +1023,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 "
@@ -1477,8 +1480,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"
@@ -1486,6 +1488,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"
@@ -1608,13 +1611,13 @@ msgid "Linux man-pages 6.03"
msgstr "Linux man-pages 6.03"
#. 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 "
@@ -1835,16 +1838,100 @@ msgid ""
msgstr ""
#. type: TH
-#: debian-unstable opensuse-tumbleweed
+#: fedora-40 fedora-rawhide mageia-cauldron
#, no-wrap
-msgid "2023-07-20"
-msgstr "2023년 7월 20일"
+msgid "2023-10-31"
+msgstr "2023년 10월 31일"
#. type: TH
-#: debian-unstable opensuse-tumbleweed
+#: fedora-40 mageia-cauldron
+#, fuzzy, no-wrap
+#| msgid "Linux man-pages 6.03"
+msgid "Linux man-pages 6.06"
+msgstr "Linux man-pages 6.03"
+
+#. type: Plain text
+#: fedora-40 fedora-rawhide mageia-cauldron
#, no-wrap
-msgid "Linux man-pages 6.05.01"
-msgstr "Linux man-pages 6.05.01"
+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
+#: fedora-rawhide
+#, fuzzy, no-wrap
+#| msgid "Linux man-pages 6.03"
+msgid "Linux man-pages 6.7"
+msgstr "Linux man-pages 6.03"
#. type: TH
#: opensuse-leap-15-6
@@ -1857,3 +1944,10 @@ msgstr "2023년 4월 3일"
#, no-wrap
msgid "Linux man-pages 6.04"
msgstr "Linux man-pages 6.04"
+
+#. type: TH
+#: opensuse-tumbleweed
+#, fuzzy, no-wrap
+#| msgid "Linux man-pages 6.03"
+msgid "Linux man-pages (unreleased)"
+msgstr "Linux man-pages 6.03"