diff options
Diffstat (limited to 'po/es/man2/poll.2.po')
-rw-r--r-- | po/es/man2/poll.2.po | 135 |
1 files changed, 118 insertions, 17 deletions
diff --git a/po/es/man2/poll.2.po b/po/es/man2/poll.2.po index 13fe4465..7ca6aa2a 100644 --- a/po/es/man2/poll.2.po +++ b/po/es/man2/poll.2.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: manpages-l10n\n" -"POT-Creation-Date: 2024-03-01 17:04+0100\n" +"POT-Creation-Date: 2024-06-01 06:09+0200\n" "PO-Revision-Date: 2021-01-30 16:15+0100\n" "Last-Translator: Juan Piernas <piernas@ditec.um.es>\n" "Language-Team: Spanish <debian-l10n-spanish@lists.debian.org>\n" @@ -25,16 +25,16 @@ msgid "poll" msgstr "ppoll()" #. type: TH -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable opensuse-tumbleweed #, no-wrap -msgid "2023-10-31" -msgstr "31 Octubre 2023" +msgid "2024-05-02" +msgstr "2 Mayo 2024" #. type: TH -#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#: archlinux debian-unstable #, no-wrap -msgid "Linux man-pages 6.06" -msgstr "Páginas de manual de Linux 6.06" +msgid "Linux man-pages 6.8" +msgstr "Páginas de Manual de Linux 6.8" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide @@ -983,8 +983,7 @@ msgid "Program source" msgstr "Código fuente" #. type: Plain text -#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron -#: opensuse-tumbleweed +#: archlinux debian-unstable opensuse-tumbleweed #, no-wrap msgid "" "/* poll_input.c\n" @@ -995,6 +994,7 @@ msgid "" "#include E<lt>poll.hE<gt>\n" "#include E<lt>stdio.hE<gt>\n" "#include E<lt>stdlib.hE<gt>\n" +"#include E<lt>sys/types.hE<gt>\n" "#include E<lt>unistd.hE<gt>\n" "\\&\n" "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\e\n" @@ -1104,7 +1104,7 @@ msgstr "5 Febrero 2023" #: debian-bookworm #, no-wrap msgid "Linux man-pages 6.03" -msgstr "Páginas de manual de Linux 6.03" +msgstr "Páginas de Manual de Linux 6.03" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 @@ -1395,16 +1395,111 @@ msgid "" msgstr "" #. type: TH -#: debian-unstable opensuse-tumbleweed +#: fedora-40 fedora-rawhide mageia-cauldron #, no-wrap -msgid "2023-07-08" -msgstr "8 Julio 2023" +msgid "2023-10-31" +msgstr "31 Octubre 2023" #. type: TH -#: debian-unstable opensuse-tumbleweed +#: fedora-40 mageia-cauldron #, no-wrap -msgid "Linux man-pages 6.05.01" -msgstr "Páginas de manual de Linux 6.05.01" +msgid "Linux man-pages 6.06" +msgstr "Páginas de Manual de Linux 6.06" + +#. type: Plain text +#: fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "" +"/* poll_input.c\n" +"\\&\n" +" Licensed under GNU General Public License v2 or later.\n" +"*/\n" +"#include E<lt>fcntl.hE<gt>\n" +"#include E<lt>poll.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" +"#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\e\n" +" } while (0)\n" +"\\&\n" +"int\n" +"main(int argc, char *argv[])\n" +"{\n" +" int ready;\n" +" char buf[10];\n" +" nfds_t num_open_fds, nfds;\n" +" ssize_t s;\n" +" struct pollfd *pfds;\n" +"\\&\n" +" if (argc E<lt> 2) {\n" +" fprintf(stderr, \"Usage: %s file...\\en\", argv[0]);\n" +" exit(EXIT_FAILURE);\n" +" }\n" +"\\&\n" +" num_open_fds = nfds = argc - 1;\n" +" pfds = calloc(nfds, sizeof(struct pollfd));\n" +" if (pfds == NULL)\n" +" errExit(\"malloc\");\n" +"\\&\n" +" /* Open each file on command line, and add it to \\[aq]pfds\\[aq] array. */\n" +"\\&\n" +" for (nfds_t j = 0; j E<lt> nfds; j++) {\n" +" pfds[j].fd = open(argv[j + 1], O_RDONLY);\n" +" if (pfds[j].fd == -1)\n" +" errExit(\"open\");\n" +"\\&\n" +" printf(\"Opened \\e\"%s\\e\" on fd %d\\en\", argv[j + 1], pfds[j].fd);\n" +"\\&\n" +" pfds[j].events = POLLIN;\n" +" }\n" +"\\&\n" +" /* Keep calling poll() as long as at least one file descriptor is\n" +" open. */\n" +"\\&\n" +" while (num_open_fds E<gt> 0) {\n" +" printf(\"About to poll()\\en\");\n" +" ready = poll(pfds, nfds, -1);\n" +" if (ready == -1)\n" +" errExit(\"poll\");\n" +"\\&\n" +" printf(\"Ready: %d\\en\", ready);\n" +"\\&\n" +" /* Deal with array returned by poll(). */\n" +"\\&\n" +" for (nfds_t j = 0; j E<lt> nfds; j++) {\n" +" if (pfds[j].revents != 0) {\n" +" printf(\" fd=%d; events: %s%s%s\\en\", pfds[j].fd,\n" +" (pfds[j].revents & POLLIN) ? \"POLLIN \" : \"\",\n" +" (pfds[j].revents & POLLHUP) ? \"POLLHUP \" : \"\",\n" +" (pfds[j].revents & POLLERR) ? \"POLLERR \" : \"\");\n" +"\\&\n" +" if (pfds[j].revents & POLLIN) {\n" +" s = read(pfds[j].fd, buf, sizeof(buf));\n" +" if (s == -1)\n" +" errExit(\"read\");\n" +" printf(\" read %zd bytes: %.*s\\en\",\n" +" s, (int) s, buf);\n" +" } else { /* POLLERR | POLLHUP */\n" +" printf(\" closing fd %d\\en\", pfds[j].fd);\n" +" if (close(pfds[j].fd) == -1)\n" +" errExit(\"close\");\n" +" num_open_fds--;\n" +" }\n" +" }\n" +" }\n" +" }\n" +"\\&\n" +" printf(\"All file descriptors closed; bye\\en\");\n" +" exit(EXIT_SUCCESS);\n" +"}\n" +msgstr "" + +#. type: TH +#: fedora-rawhide +#, no-wrap +msgid "Linux man-pages 6.7" +msgstr "Páginas de Manual de Linux 6.7" #. type: TH #: opensuse-leap-15-6 @@ -1416,4 +1511,10 @@ msgstr "30 Marzo 2023" #: opensuse-leap-15-6 #, no-wrap msgid "Linux man-pages 6.04" -msgstr "Linux man-pages 6.04" +msgstr "Páginas de Manual de Linux 6.04" + +#. type: TH +#: opensuse-tumbleweed +#, no-wrap +msgid "Linux man-pages (unreleased)" +msgstr "Páginas de Manual de Linux (no publicadas)" |