# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2026-06-05 06:43+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "signalfd" msgstr "" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-08" msgstr "" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "signalfd - create a file descriptor for accepting signals" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Standard C library (I,\\ I<-lc>)" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<#include Esys/signalfd.hE>\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BIB<, const sigset_t *>IB<, int >IB<);>\n" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() creates a file descriptor that can be used to accept signals " "targeted at the caller. This provides an alternative to the use of a signal " "handler or B(2), and has the advantage that the file descriptor " "may be monitored by B(2)" msgstr "" #. type: TQ #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(and similar)" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The file descriptor is readable (the B(2), " "B(2), or B(7): the arrival of different signals will make " "different file descriptors ready.) If a signal appears in the I of " "more than one of the file descriptors, then occurrences of that signal can " "be read (once) from any one of the file descriptors." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Attempts to include B and B in I are silently " "ignored." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The signal mask employed by a signalfd file descriptor can be viewed via the " "entry for the corresponding file descriptor in the process's IpidI directory. See B(5) for further details." msgstr "" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Limitations" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The signalfd mechanism can't be used to receive signals that are " "synchronously generated, such as the B signal that results from " "accessing an invalid memory address or the B signal that results " "from an arithmetic error. Such signals can be caught only via signal " "handler." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "As described above, in normal usage one blocks the signals that will be " "accepted via B(). If spawning a child process to execute a helper " "program (that does not need the signalfd file descriptor), then, after the " "call to B(2), you will normally want to unblock those signals before " "calling B(2), so that the helper program can see any signals that it " "expects to see. Be aware, however, that this won't be possible in the case " "of a helper program spawned behind the scenes by any library function that " "the program may call. In such cases, one must fall back to using a " "traditional signal handler that writes to a file descriptor monitored by " "B(2), B(2), " "B(2), B(2), B(2), B(3), " "B(3), B(7), B(7)" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "2024-06-15" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "" #. ssi_trapno is unused on most arches #. ssi_addr_lsb: commit b8aeec34175fc8fe8b0d40efea4846dfc1ba663e #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "struct signalfd_siginfo {\n" " uint32_t ssi_signo; /* Signal number */\n" " int32_t ssi_errno; /* Error number (unused) */\n" " int32_t ssi_code; /* Signal code */\n" " uint32_t ssi_pid; /* PID of sender */\n" " uint32_t ssi_uid; /* Real UID of sender */\n" " int32_t ssi_fd; /* File descriptor (SIGIO) */\n" " uint32_t ssi_tid; /* Kernel timer ID (POSIX timers)\n" " uint32_t ssi_band; /* Band event (SIGIO) */\n" " uint32_t ssi_overrun; /* POSIX timer overrun count */\n" " uint32_t ssi_trapno; /* Trap number that caused signal */\n" " int32_t ssi_status; /* Exit status or signal (SIGCHLD) */\n" " int32_t ssi_int; /* Integer sent by sigqueue(3) */\n" " uint64_t ssi_ptr; /* Pointer sent by sigqueue(3) */\n" " uint64_t ssi_utime; /* User CPU time consumed (SIGCHLD) */\n" " uint64_t ssi_stime; /* System CPU time consumed\n" " (SIGCHLD) */\n" " uint64_t ssi_addr; /* Address that generated signal\n" " (for hardware-generated signals) */\n" " uint16_t ssi_addr_lsb; /* Least significant bit of address\n" " (SIGBUS; since Linux 2.6.37) */\n" " uint8_t pad[I]; /* Pad size to 128 bytes (allow for\n" " additional fields in the future) */\n" "};\n" msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "#include Eerr.hE\n" "#include Esignal.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/signalfd.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int sfd;\n" " ssize_t s;\n" " sigset_t mask;\n" " struct signalfd_siginfo fdsi;\n" "\\&\n" " sigemptyset(&mask);\n" " sigaddset(&mask, SIGINT);\n" " sigaddset(&mask, SIGQUIT);\n" "\\&\n" " /* Block signals so that they aren\\[aq]t handled\n" " according to their default dispositions. */\n" "\\&\n" " if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1)\n" " err(EXIT_FAILURE, \"sigprocmask\");\n" "\\&\n" " sfd = signalfd(-1, &mask, 0);\n" " if (sfd == -1)\n" " err(EXIT_FAILURE, \"signalfd\");\n" "\\&\n" " for (;;) {\n" " s = read(sfd, &fdsi, sizeof(fdsi));\n" " if (s != sizeof(fdsi))\n" " err(EXIT_FAILURE, \"read\");\n" "\\&\n" " if (fdsi.ssi_signo == SIGINT) {\n" " printf(\"Got SIGINT\\[rs]n\");\n" " } else if (fdsi.ssi_signo == SIGQUIT) {\n" " printf(\"Got SIGQUIT\\[rs]n\");\n" " exit(EXIT_SUCCESS);\n" " } else {\n" " printf(\"Read unexpected signal\\[rs]n\");\n" " }\n" " }\n" "}\n" msgstr "" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-07-23" msgstr "" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr ""