#, fuzzy msgid "" msgstr "" "Project-Id-Version: man-pages-l10n VERSION\n" "POT-Creation-Date: 2014-07-17 17:53+0900\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: man-pages/man2/eventfd.2:22 #, no-wrap msgid "EVENTFD" msgstr "" #. type: TH #: man-pages/man2/eventfd.2:22 #, no-wrap msgid "2014-07-08" msgstr "" #. type: TH #: man-pages/man2/eventfd.2:22 #, no-wrap msgid "Linux" msgstr "" #. type: TH #: man-pages/man2/eventfd.2:22 #, no-wrap msgid "Linux Programmer's Manual" msgstr "" #. type: SH #: man-pages/man2/eventfd.2:23 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:25 msgid "eventfd - create a file descriptor for event notification" msgstr "" #. type: SH #: man-pages/man2/eventfd.2:25 #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:27 msgid "B<#include Esys/eventfd.hE>" msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:29 msgid "BIB<, int >IB<);>" msgstr "" #. type: SH #: man-pages/man2/eventfd.2:29 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:39 msgid "" "B() creates an \"eventfd object\" that can be used as an event " "wait/notify mechanism by user-space applications, and by the kernel to " "notify user-space applications of events. The object contains an unsigned " "64-bit integer (I) counter that is maintained by the kernel. " "This counter is initialized with the value specified in the argument " "I." msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:44 msgid "" "The following values may be bitwise ORed in I to change the behavior " "of B():" msgstr "" #. type: TP #: man-pages/man2/eventfd.2:44 #, no-wrap msgid "B (since Linux 2.6.27)" msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:54 msgid "" "Set the close-on-exec (B) flag on the new file descriptor. See " "the description of the B flag in B(2) for reasons why this " "may be useful." msgstr "" #. type: TP #: man-pages/man2/eventfd.2:54 #, no-wrap msgid "B (since Linux 2.6.27)" msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:62 msgid "" "Set the B file status flag on the new open file description. " "Using this flag saves extra calls to B(2) to achieve the same result." "" msgstr "" #. type: TP #: man-pages/man2/eventfd.2:62 #, no-wrap msgid "B (since Linux 2.6.30)" msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:66 msgid "" "Provide semaphore-like semantics for reads from the new file descriptor. " "See below." msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:70 msgid "" "In Linux up to version 2.6.26, the I argument is unused, and must be " "specified as zero." msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:76 msgid "" "As its return value, B() returns a new file descriptor that can be " "used to refer to the eventfd object. The following operations can be " "performed on the file descriptor:" msgstr "" #. type: TP #: man-pages/man2/eventfd.2:76 #, no-wrap msgid "B(2)" msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:86 msgid "" "Each successful B(2) returns an 8-byte integer. A B(2) will " "fail with the error B if the size of the supplied buffer is less " "than 8 bytes." msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:91 msgid "" "The value returned by B(2) is in host byte order\\(emthat is, the " "native byte order for integers on the host machine." msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:98 msgid "" "The semantics of B(2) depend on whether the eventfd counter currently " "has a nonzero value and whether the B flag was specified when " "creating the eventfd file descriptor:" msgstr "" #. type: IP #: man-pages/man2/eventfd.2:99 man-pages/man2/eventfd.2:106 man-pages/man2/eventfd.2:113 man-pages/man2/eventfd.2:158 man-pages/man2/eventfd.2:168 man-pages/man2/eventfd.2:178 #, no-wrap msgid "*" msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:106 msgid "" "If B was not specified and the eventfd counter has a nonzero " "value, then a B(2) returns 8 bytes containing that value, and the " "counter's value is reset to zero." msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:113 msgid "" "If B was specified and the eventfd counter has a nonzero " "value, then a B(2) returns 8 bytes containing the value 1, and the " "counter's value is decremented by 1." msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:123 msgid "" "If the eventfd counter is zero at the time of the call to B(2), then " "the call either blocks until the counter becomes nonzero (at which time, the " "B(2) proceeds as described above) or fails with the error B " "if the file descriptor has been made nonblocking." msgstr "" #. type: TP #: man-pages/man2/eventfd.2:124 #, no-wrap msgid "B(2)" msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:141 msgid "" "A B(2) call adds the 8-byte integer value supplied in its buffer to " "the counter. The maximum value that may be stored in the counter is the " "largest unsigned 64-bit value minus 1 (i.e., 0xfffffffffffffffe). If the " "addition would cause the counter's value to exceed the maximum, then the " "B(2) either blocks until a B(2) is performed on the file " "descriptor, or fails with the error B if the file descriptor has " "been made nonblocking." msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:148 msgid "" "A B(2) will fail with the error B if the size of the " "supplied buffer is less than 8 bytes, or if an attempt is made to write the " "value 0xffffffffffffffff." msgstr "" #. type: TP #: man-pages/man2/eventfd.2:148 #, no-wrap msgid "B(2), B(2), as follows:" msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:168 msgid "" "The file descriptor is readable (the B(2) I argument; the " "B(2) B flag) if it is possible to write a value of at least " "\"1\" without blocking." msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:198 msgid "" "If an overflow of the counter value was detected, then B(2), B(2), or " "B(7). This means that an application can simultaneously monitor the " "readiness of \"traditional\" files and the readiness of other kernel " "mechanisms that support the eventfd interface. (Without the B() " "interface, these mechanisms could not be multiplexed via B(2), " "B(2), B(2), B(2), B(7), " "B(7)" msgstr "" #. type: SH #: man-pages/man2/eventfd.2:428 #, no-wrap msgid "COLOPHON" msgstr "" #. type: Plain text #: man-pages/man2/eventfd.2:436 msgid "" "This page is part of release 3.70 of the Linux I project. A " "description of the project, information about reporting bugs, and the latest " "version of this page, can be found at \\%http://www.kernel.org/doc/man-pages/" "." msgstr ""