| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:23+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "eventfd" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 28 |
#, no-wrap |
| 29 |
msgid "2026-02-16" |
| 30 |
msgstr "" |
| 31 |
|
| 32 |
#. type: TH |
| 33 |
#: archlinux debian-unstable |
| 34 |
#, no-wrap |
| 35 |
msgid "Linux man-pages 6.18" |
| 36 |
msgstr "" |
| 37 |
|
| 38 |
#. type: SH |
| 39 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 40 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 41 |
#, no-wrap |
| 42 |
msgid "NAME" |
| 43 |
msgstr "" |
| 44 |
|
| 45 |
#. type: Plain text |
| 46 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 47 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 48 |
msgid "eventfd - create a file descriptor for event notification" |
| 49 |
msgstr "" |
| 50 |
|
| 51 |
#. type: SH |
| 52 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 53 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 54 |
#, no-wrap |
| 55 |
msgid "LIBRARY" |
| 56 |
msgstr "" |
| 57 |
|
| 58 |
#. type: Plain text |
| 59 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 60 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 61 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 62 |
msgstr "" |
| 63 |
|
| 64 |
#. type: SH |
| 65 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 66 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 67 |
#, no-wrap |
| 68 |
msgid "SYNOPSIS" |
| 69 |
msgstr "" |
| 70 |
|
| 71 |
#. type: Plain text |
| 72 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 73 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 74 |
#, no-wrap |
| 75 |
msgid "B<#include E<lt>sys/eventfd.hE<gt>>\n" |
| 76 |
msgstr "" |
| 77 |
|
| 78 |
#. type: Plain text |
| 79 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 80 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 81 |
#, no-wrap |
| 82 |
msgid "B<int eventfd(unsigned int >I<initval>B<, int >I<flags>B<);>\n" |
| 83 |
msgstr "" |
| 84 |
|
| 85 |
#. type: SH |
| 86 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 87 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 88 |
#, no-wrap |
| 89 |
msgid "DESCRIPTION" |
| 90 |
msgstr "" |
| 91 |
|
| 92 |
#. type: Plain text |
| 93 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 94 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 95 |
msgid "" |
| 96 |
"B<eventfd>() creates an \"eventfd object\" that can be used as an event " |
| 97 |
"wait/notify mechanism by user-space applications, and by the kernel to " |
| 98 |
"notify user-space applications of events. The object contains an unsigned " |
| 99 |
"64-bit integer (I<uint64_t>) counter that is maintained by the kernel. " |
| 100 |
"This counter is initialized with the value specified in the argument " |
| 101 |
"I<initval>." |
| 102 |
msgstr "" |
| 103 |
|
| 104 |
#. type: Plain text |
| 105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 106 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 107 |
msgid "" |
| 108 |
"As its return value, B<eventfd>() returns a new file descriptor that can be " |
| 109 |
"used to refer to the eventfd object." |
| 110 |
msgstr "" |
| 111 |
|
| 112 |
#. type: Plain text |
| 113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 114 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 115 |
msgid "" |
| 116 |
"The following values may be bitwise ORed in I<flags> to change the behavior " |
| 117 |
"of B<eventfd>():" |
| 118 |
msgstr "" |
| 119 |
|
| 120 |
#. type: TP |
| 121 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 122 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 123 |
#, no-wrap |
| 124 |
msgid "B<EFD_CLOEXEC> (since Linux 2.6.27)" |
| 125 |
msgstr "" |
| 126 |
|
| 127 |
#. type: Plain text |
| 128 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 129 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 130 |
msgid "" |
| 131 |
"Set the close-on-exec (B<FD_CLOEXEC>) flag on the new file descriptor. See " |
| 132 |
"the description of the B<O_CLOEXEC> flag in B<open>(2) for reasons why this " |
| 133 |
"may be useful." |
| 134 |
msgstr "" |
| 135 |
|
| 136 |
#. type: TP |
| 137 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 138 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 139 |
#, no-wrap |
| 140 |
msgid "B<EFD_NONBLOCK> (since Linux 2.6.27)" |
| 141 |
msgstr "" |
| 142 |
|
| 143 |
#. type: Plain text |
| 144 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 145 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 146 |
msgid "" |
| 147 |
"Set the B<O_NONBLOCK> file status flag on the open file description (see " |
| 148 |
"B<open>(2)) referred to by the new file descriptor. Using this flag saves " |
| 149 |
"extra calls to B<fcntl>(2) to achieve the same result." |
| 150 |
msgstr "" |
| 151 |
|
| 152 |
#. type: TP |
| 153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 154 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 155 |
#, no-wrap |
| 156 |
msgid "B<EFD_SEMAPHORE> (since Linux 2.6.30)" |
| 157 |
msgstr "" |
| 158 |
|
| 159 |
#. type: Plain text |
| 160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 161 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 162 |
msgid "" |
| 163 |
"Provide semaphore-like semantics for reads from the new file descriptor. " |
| 164 |
"See below." |
| 165 |
msgstr "" |
| 166 |
|
| 167 |
#. type: Plain text |
| 168 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 169 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 170 |
msgid "" |
| 171 |
"Up to Linux 2.6.26, the I<flags> argument is unused, and must be specified " |
| 172 |
"as zero." |
| 173 |
msgstr "" |
| 174 |
|
| 175 |
#. type: Plain text |
| 176 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 177 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 178 |
msgid "" |
| 179 |
"The following operations can be performed on the file descriptor returned by " |
| 180 |
"B<eventfd>():" |
| 181 |
msgstr "" |
| 182 |
|
| 183 |
#. type: TP |
| 184 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 185 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 186 |
#, no-wrap |
| 187 |
msgid "B<read>(2)" |
| 188 |
msgstr "" |
| 189 |
|
| 190 |
#. type: Plain text |
| 191 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 192 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 193 |
msgid "" |
| 194 |
"Each successful B<read>(2) returns an 8-byte integer. A B<read>(2) fails " |
| 195 |
"with the error B<EINVAL> if the size of the supplied buffer is less than 8 " |
| 196 |
"bytes." |
| 197 |
msgstr "" |
| 198 |
|
| 199 |
#. type: Plain text |
| 200 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 201 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 202 |
msgid "" |
| 203 |
"The value returned by B<read>(2) is in host byte order\\[em]that is, the " |
| 204 |
"native byte order for integers on the host machine." |
| 205 |
msgstr "" |
| 206 |
|
| 207 |
#. type: Plain text |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
msgid "" |
| 211 |
"The semantics of B<read>(2) depend on whether the eventfd counter currently " |
| 212 |
"has a nonzero value and whether the B<EFD_SEMAPHORE> flag was specified when " |
| 213 |
"creating the eventfd file descriptor:" |
| 214 |
msgstr "" |
| 215 |
|
| 216 |
#. type: IP |
| 217 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 218 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 219 |
#, no-wrap |
| 220 |
msgid "\\[bu]" |
| 221 |
msgstr "" |
| 222 |
|
| 223 |
#. type: Plain text |
| 224 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 225 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 226 |
msgid "" |
| 227 |
"If B<EFD_SEMAPHORE> was not specified and the eventfd counter has a nonzero " |
| 228 |
"value, then a B<read>(2) returns 8 bytes containing that value, and the " |
| 229 |
"counter's value is reset to zero." |
| 230 |
msgstr "" |
| 231 |
|
| 232 |
#. type: Plain text |
| 233 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 234 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 235 |
msgid "" |
| 236 |
"If B<EFD_SEMAPHORE> was specified and the eventfd counter has a nonzero " |
| 237 |
"value, then a B<read>(2) returns 8 bytes containing the value 1, and the " |
| 238 |
"counter's value is decremented by 1." |
| 239 |
msgstr "" |
| 240 |
|
| 241 |
#. type: Plain text |
| 242 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 243 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 244 |
msgid "" |
| 245 |
"If the eventfd counter is zero at the time of the call to B<read>(2), then " |
| 246 |
"the call either blocks until the counter becomes nonzero (at which time, the " |
| 247 |
"B<read>(2) proceeds as described above) or fails with the error B<EAGAIN> " |
| 248 |
"if the file descriptor has been made nonblocking." |
| 249 |
msgstr "" |
| 250 |
|
| 251 |
#. type: TP |
| 252 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 253 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 254 |
#, no-wrap |
| 255 |
msgid "B<write>(2)" |
| 256 |
msgstr "" |
| 257 |
|
| 258 |
#. type: Plain text |
| 259 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 260 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 261 |
msgid "" |
| 262 |
"A B<write>(2) call adds the 8-byte integer value supplied in its buffer to " |
| 263 |
"the counter. The maximum value that may be stored in the counter is the " |
| 264 |
"largest unsigned 64-bit value minus 1 (i.e., 0xfffffffffffffffe). If the " |
| 265 |
"addition would cause the counter's value to exceed the maximum, then the " |
| 266 |
"B<write>(2) either blocks until a B<read>(2) is performed on the file " |
| 267 |
"descriptor, or fails with the error B<EAGAIN> if the file descriptor has " |
| 268 |
"been made nonblocking." |
| 269 |
msgstr "" |
| 270 |
|
| 271 |
#. type: Plain text |
| 272 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 273 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 274 |
msgid "" |
| 275 |
"A B<write>(2) fails with the error B<EINVAL> if the size of the supplied " |
| 276 |
"buffer is less than 8 bytes, or if an attempt is made to write the value " |
| 277 |
"0xffffffffffffffff." |
| 278 |
msgstr "" |
| 279 |
|
| 280 |
#. type: TP |
| 281 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 282 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 283 |
#, no-wrap |
| 284 |
msgid "B<poll>(2)" |
| 285 |
msgstr "" |
| 286 |
|
| 287 |
#. type: TQ |
| 288 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 289 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 290 |
#, no-wrap |
| 291 |
msgid "B<select>(2)" |
| 292 |
msgstr "" |
| 293 |
|
| 294 |
#. type: TQ |
| 295 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 296 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 297 |
#, no-wrap |
| 298 |
msgid "(and similar)" |
| 299 |
msgstr "" |
| 300 |
|
| 301 |
#. type: Plain text |
| 302 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 303 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 304 |
msgid "" |
| 305 |
"The returned file descriptor supports B<poll>(2) (and analogously " |
| 306 |
"B<epoll>(7)) and B<select>(2), as follows:" |
| 307 |
msgstr "" |
| 308 |
|
| 309 |
#. type: Plain text |
| 310 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 311 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 312 |
msgid "" |
| 313 |
"The file descriptor is readable (the B<select>(2) I<readfds> argument; the " |
| 314 |
"B<poll>(2) B<POLLIN> flag) if the counter has a value greater than 0." |
| 315 |
msgstr "" |
| 316 |
|
| 317 |
#. type: Plain text |
| 318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 319 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 320 |
msgid "" |
| 321 |
"The file descriptor is writable (the B<select>(2) I<writefds> argument; the " |
| 322 |
"B<poll>(2) B<POLLOUT> flag) if it is possible to write a value of at least " |
| 323 |
"\"1\" without blocking." |
| 324 |
msgstr "" |
| 325 |
|
| 326 |
#. type: Plain text |
| 327 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 328 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 329 |
msgid "" |
| 330 |
"If an overflow of the counter value was detected, then B<select>(2) " |
| 331 |
"indicates the file descriptor as being both readable and writable, and " |
| 332 |
"B<poll>(2) returns a B<POLLERR> event. As noted above, B<write>(2) can " |
| 333 |
"never overflow the counter. However an overflow can occur if 2\\[ha]64 " |
| 334 |
"eventfd \"signal posts\" were performed by the KAIO subsystem (theoretically " |
| 335 |
"possible, but practically unlikely). If an overflow has occurred, then " |
| 336 |
"B<read>(2) will return that maximum I<uint64_t> value (i.e., " |
| 337 |
"0xffffffffffffffff)." |
| 338 |
msgstr "" |
| 339 |
|
| 340 |
#. type: Plain text |
| 341 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 342 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 343 |
msgid "" |
| 344 |
"The eventfd file descriptor also supports the other file-descriptor " |
| 345 |
"multiplexing APIs: B<pselect>(2) and B<ppoll>(2)." |
| 346 |
msgstr "" |
| 347 |
|
| 348 |
#. type: TP |
| 349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 350 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 351 |
#, no-wrap |
| 352 |
msgid "B<close>(2)" |
| 353 |
msgstr "" |
| 354 |
|
| 355 |
#. type: Plain text |
| 356 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 357 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 358 |
msgid "" |
| 359 |
"When the file descriptor is no longer required it should be closed. When " |
| 360 |
"all file descriptors associated with the same eventfd object have been " |
| 361 |
"closed, the resources for object are freed by the kernel." |
| 362 |
msgstr "" |
| 363 |
|
| 364 |
#. type: Plain text |
| 365 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 366 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 367 |
msgid "" |
| 368 |
"A copy of the file descriptor created by B<eventfd>() is inherited by the " |
| 369 |
"child produced by B<fork>(2). The duplicate file descriptor is associated " |
| 370 |
"with the same eventfd object. File descriptors created by B<eventfd>() are " |
| 371 |
"preserved across B<execve>(2), unless the close-on-exec flag has been set." |
| 372 |
msgstr "" |
| 373 |
|
| 374 |
#. type: SH |
| 375 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 376 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 377 |
#, no-wrap |
| 378 |
msgid "RETURN VALUE" |
| 379 |
msgstr "" |
| 380 |
|
| 381 |
#. type: Plain text |
| 382 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 383 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 384 |
msgid "" |
| 385 |
"On success, B<eventfd>() returns a new eventfd file descriptor. On error, " |
| 386 |
"-1 is returned and I<errno> is set to indicate the error." |
| 387 |
msgstr "" |
| 388 |
|
| 389 |
#. type: SH |
| 390 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 391 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 392 |
#, no-wrap |
| 393 |
msgid "ERRORS" |
| 394 |
msgstr "" |
| 395 |
|
| 396 |
#. type: TP |
| 397 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 398 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 399 |
#, no-wrap |
| 400 |
msgid "B<EINVAL>" |
| 401 |
msgstr "" |
| 402 |
|
| 403 |
#. type: Plain text |
| 404 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 405 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 406 |
msgid "An unsupported value was specified in I<flags>." |
| 407 |
msgstr "" |
| 408 |
|
| 409 |
#. type: TP |
| 410 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 411 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 412 |
#, no-wrap |
| 413 |
msgid "B<EMFILE>" |
| 414 |
msgstr "" |
| 415 |
|
| 416 |
#. type: Plain text |
| 417 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 418 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 419 |
msgid "" |
| 420 |
"The per-process limit on the number of open file descriptors has been " |
| 421 |
"reached." |
| 422 |
msgstr "" |
| 423 |
|
| 424 |
#. type: TP |
| 425 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 426 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 427 |
#, no-wrap |
| 428 |
msgid "B<ENFILE>" |
| 429 |
msgstr "" |
| 430 |
|
| 431 |
#. type: Plain text |
| 432 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 433 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 434 |
msgid "" |
| 435 |
"The system-wide limit on the total number of open files has been reached." |
| 436 |
msgstr "" |
| 437 |
|
| 438 |
#. type: TP |
| 439 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 440 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 441 |
#, no-wrap |
| 442 |
msgid "B<ENODEV>" |
| 443 |
msgstr "" |
| 444 |
|
| 445 |
#. #-#-#-#-# archlinux: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 446 |
#. Note from Davide: |
| 447 |
#. The ENODEV error is basically never going to happen if |
| 448 |
#. the kernel boots correctly. That error happen only if during |
| 449 |
#. the kernel initialization, some error occur in the anonymous |
| 450 |
#. inode source initialization. |
| 451 |
#. type: Plain text |
| 452 |
#. #-#-#-#-# debian-trixie: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 453 |
#. Note from Davide: |
| 454 |
#. The ENODEV error is basically never going to happen if |
| 455 |
#. the kernel boots correctly. That error happen only if during |
| 456 |
#. the kernel initialization, some error occur in the anonymous |
| 457 |
#. inode source initialization. |
| 458 |
#. type: Plain text |
| 459 |
#. #-#-#-#-# debian-unstable: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 460 |
#. Note from Davide: |
| 461 |
#. The ENODEV error is basically never going to happen if |
| 462 |
#. the kernel boots correctly. That error happen only if during |
| 463 |
#. the kernel initialization, some error occur in the anonymous |
| 464 |
#. inode source initialization. |
| 465 |
#. type: Plain text |
| 466 |
#. #-#-#-#-# fedora-44: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 467 |
#. Note from Davide: |
| 468 |
#. The ENODEV error is basically never going to happen if |
| 469 |
#. the kernel boots correctly. That error happen only if during |
| 470 |
#. the kernel initialization, some error occur in the anonymous |
| 471 |
#. inode source initialization. |
| 472 |
#. type: Plain text |
| 473 |
#. #-#-#-#-# fedora-rawhide: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 474 |
#. Note from Davide: |
| 475 |
#. The ENODEV error is basically never going to happen if |
| 476 |
#. the kernel boots correctly. That error happen only if during |
| 477 |
#. the kernel initialization, some error occur in the anonymous |
| 478 |
#. inode source initialization. |
| 479 |
#. type: Plain text |
| 480 |
#. #-#-#-#-# mageia-cauldron: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 481 |
#. Note from Davide: |
| 482 |
#. The ENODEV error is basically never going to happen if |
| 483 |
#. the kernel boots correctly. That error happen only if during |
| 484 |
#. the kernel initialization, some error occur in the anonymous |
| 485 |
#. inode source initialization. |
| 486 |
#. type: Plain text |
| 487 |
#. #-#-#-#-# opensuse-leap-16-1: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 488 |
#. Note from Davide: |
| 489 |
#. The ENODEV error is basically never going to happen if |
| 490 |
#. the kernel boots correctly. That error happen only if during |
| 491 |
#. the kernel initialization, some error occur in the anonymous |
| 492 |
#. inode source initialization. |
| 493 |
#. type: Plain text |
| 494 |
#. #-#-#-#-# opensuse-tumbleweed: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 495 |
#. Note from Davide: |
| 496 |
#. The ENODEV error is basically never going to happen if |
| 497 |
#. the kernel boots correctly. That error happen only if during |
| 498 |
#. the kernel initialization, some error occur in the anonymous |
| 499 |
#. inode source initialization. |
| 500 |
#. type: Plain text |
| 501 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 502 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 503 |
msgid "Could not mount (internal) anonymous inode device." |
| 504 |
msgstr "" |
| 505 |
|
| 506 |
#. type: TP |
| 507 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 508 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 509 |
#, no-wrap |
| 510 |
msgid "B<ENOMEM>" |
| 511 |
msgstr "" |
| 512 |
|
| 513 |
#. type: Plain text |
| 514 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 515 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 516 |
msgid "There was insufficient memory to create a new eventfd file descriptor." |
| 517 |
msgstr "" |
| 518 |
|
| 519 |
#. type: SH |
| 520 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 521 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 522 |
#, no-wrap |
| 523 |
msgid "ATTRIBUTES" |
| 524 |
msgstr "" |
| 525 |
|
| 526 |
#. type: Plain text |
| 527 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 528 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 529 |
msgid "" |
| 530 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 531 |
msgstr "" |
| 532 |
|
| 533 |
#. type: tbl table |
| 534 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 535 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 536 |
#, no-wrap |
| 537 |
msgid "Interface" |
| 538 |
msgstr "" |
| 539 |
|
| 540 |
#. type: tbl table |
| 541 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 542 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 543 |
#, no-wrap |
| 544 |
msgid "Attribute" |
| 545 |
msgstr "" |
| 546 |
|
| 547 |
#. type: tbl table |
| 548 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 549 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 550 |
#, no-wrap |
| 551 |
msgid "Value" |
| 552 |
msgstr "" |
| 553 |
|
| 554 |
#. type: tbl table |
| 555 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 556 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 557 |
#, no-wrap |
| 558 |
msgid ".na\n" |
| 559 |
msgstr "" |
| 560 |
|
| 561 |
#. type: tbl table |
| 562 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 563 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 564 |
#, no-wrap |
| 565 |
msgid ".nh\n" |
| 566 |
msgstr "" |
| 567 |
|
| 568 |
#. type: TP |
| 569 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 570 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 571 |
#, no-wrap |
| 572 |
msgid "B<eventfd>()" |
| 573 |
msgstr "" |
| 574 |
|
| 575 |
#. type: tbl table |
| 576 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 577 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 578 |
#, no-wrap |
| 579 |
msgid "Thread safety" |
| 580 |
msgstr "" |
| 581 |
|
| 582 |
#. type: tbl table |
| 583 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 584 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 585 |
#, no-wrap |
| 586 |
msgid "MT-Safe" |
| 587 |
msgstr "" |
| 588 |
|
| 589 |
#. type: SH |
| 590 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 591 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 592 |
#, no-wrap |
| 593 |
msgid "VERSIONS" |
| 594 |
msgstr "" |
| 595 |
|
| 596 |
#. type: SS |
| 597 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 598 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 599 |
#, no-wrap |
| 600 |
msgid "C library/kernel differences" |
| 601 |
msgstr "" |
| 602 |
|
| 603 |
#. type: Plain text |
| 604 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 605 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 606 |
msgid "" |
| 607 |
"There are two underlying Linux system calls: B<eventfd>() and the more " |
| 608 |
"recent B<eventfd2>(). The former system call does not implement a I<flags> " |
| 609 |
"argument. The latter system call implements the I<flags> values described " |
| 610 |
"above. The glibc wrapper function will use B<eventfd2>() where it is " |
| 611 |
"available." |
| 612 |
msgstr "" |
| 613 |
|
| 614 |
#. type: SS |
| 615 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 616 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 617 |
#, no-wrap |
| 618 |
msgid "Additional glibc features" |
| 619 |
msgstr "" |
| 620 |
|
| 621 |
#. type: Plain text |
| 622 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 623 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 624 |
msgid "" |
| 625 |
"The GNU C library defines an additional type, and two functions that attempt " |
| 626 |
"to abstract some of the details of reading and writing on an eventfd file " |
| 627 |
"descriptor:" |
| 628 |
msgstr "" |
| 629 |
|
| 630 |
#. type: Plain text |
| 631 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 632 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 633 |
#, no-wrap |
| 634 |
msgid "" |
| 635 |
"typedef uint64_t eventfd_t;\n" |
| 636 |
"\\&\n" |
| 637 |
"int eventfd_read(int fd, eventfd_t *value);\n" |
| 638 |
"int eventfd_write(int fd, eventfd_t value);\n" |
| 639 |
msgstr "" |
| 640 |
|
| 641 |
#. type: Plain text |
| 642 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 643 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 644 |
msgid "" |
| 645 |
"The functions perform the read and write operations on an eventfd file " |
| 646 |
"descriptor, returning 0 if the correct number of bytes was transferred, or " |
| 647 |
"-1 otherwise." |
| 648 |
msgstr "" |
| 649 |
|
| 650 |
#. type: SH |
| 651 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 652 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 653 |
#, no-wrap |
| 654 |
msgid "STANDARDS" |
| 655 |
msgstr "" |
| 656 |
|
| 657 |
#. type: Plain text |
| 658 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 659 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 660 |
msgid "Linux, GNU." |
| 661 |
msgstr "" |
| 662 |
|
| 663 |
#. type: SH |
| 664 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 665 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 666 |
#, no-wrap |
| 667 |
msgid "HISTORY" |
| 668 |
msgstr "" |
| 669 |
|
| 670 |
#. eventfd() is in glibc 2.7, but reportedly does not build |
| 671 |
#. type: Plain text |
| 672 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 673 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 674 |
msgid "Linux 2.6.22, glibc 2.8." |
| 675 |
msgstr "" |
| 676 |
|
| 677 |
#. type: TP |
| 678 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 679 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 680 |
#, no-wrap |
| 681 |
msgid "B<eventfd2>()" |
| 682 |
msgstr "" |
| 683 |
|
| 684 |
#. type: Plain text |
| 685 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 686 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 687 |
msgid "" |
| 688 |
"Linux 2.6.27 (see VERSIONS). Since glibc 2.9, the B<eventfd>() wrapper " |
| 689 |
"will employ the B<eventfd2>() system call, if it is supported by the kernel." |
| 690 |
msgstr "" |
| 691 |
|
| 692 |
#. type: SH |
| 693 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 694 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 695 |
#, no-wrap |
| 696 |
msgid "NOTES" |
| 697 |
msgstr "" |
| 698 |
|
| 699 |
#. type: Plain text |
| 700 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 701 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 702 |
msgid "" |
| 703 |
"Applications can use an eventfd file descriptor instead of a pipe (see " |
| 704 |
"B<pipe>(2)) in all cases where a pipe is used simply to signal events. The " |
| 705 |
"kernel overhead of an eventfd file descriptor is much lower than that of a " |
| 706 |
"pipe, and only one file descriptor is required (versus the two required for " |
| 707 |
"a pipe)." |
| 708 |
msgstr "" |
| 709 |
|
| 710 |
#. or eventually syslets/threadlets |
| 711 |
#. type: Plain text |
| 712 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 713 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 714 |
msgid "" |
| 715 |
"When used in the kernel, an eventfd file descriptor can provide a bridge " |
| 716 |
"from kernel to user space, allowing, for example, functionalities like KAIO " |
| 717 |
"(kernel AIO) to signal to a file descriptor that some operation is complete." |
| 718 |
msgstr "" |
| 719 |
|
| 720 |
#. type: Plain text |
| 721 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 722 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 723 |
msgid "" |
| 724 |
"A key point about an eventfd file descriptor is that it can be monitored " |
| 725 |
"just like any other file descriptor using B<select>(2), B<poll>(2), or " |
| 726 |
"B<epoll>(7). This means that an application can simultaneously monitor the " |
| 727 |
"readiness of \"traditional\" files and the readiness of other kernel " |
| 728 |
"mechanisms that support the eventfd interface. (Without the B<eventfd>() " |
| 729 |
"interface, these mechanisms could not be multiplexed via B<select>(2), " |
| 730 |
"B<poll>(2), or B<epoll>(7).)" |
| 731 |
msgstr "" |
| 732 |
|
| 733 |
#. type: Plain text |
| 734 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 735 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 736 |
msgid "" |
| 737 |
"The current value of an eventfd counter can be viewed via the entry for the " |
| 738 |
"corresponding file descriptor in the process's I</proc/>pidI</fdinfo> " |
| 739 |
"directory. See B<proc>(5) for further details." |
| 740 |
msgstr "" |
| 741 |
|
| 742 |
#. type: SH |
| 743 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 744 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 745 |
#, no-wrap |
| 746 |
msgid "EXAMPLES" |
| 747 |
msgstr "" |
| 748 |
|
| 749 |
#. type: Plain text |
| 750 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 751 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 752 |
msgid "" |
| 753 |
"The following program creates an eventfd file descriptor and then forks to " |
| 754 |
"create a child process. While the parent briefly sleeps, the child writes " |
| 755 |
"each of the integers supplied in the program's command-line arguments to the " |
| 756 |
"eventfd file descriptor. When the parent has finished sleeping, it reads " |
| 757 |
"from the eventfd file descriptor." |
| 758 |
msgstr "" |
| 759 |
|
| 760 |
#. type: Plain text |
| 761 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 762 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 763 |
msgid "The following shell session shows a sample run of the program:" |
| 764 |
msgstr "" |
| 765 |
|
| 766 |
#. type: Plain text |
| 767 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 768 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 769 |
#, no-wrap |
| 770 |
msgid "" |
| 771 |
"$B< ./a.out 1 2 4 7 14>\n" |
| 772 |
"Child writing 1 to efd\n" |
| 773 |
"Child writing 2 to efd\n" |
| 774 |
"Child writing 4 to efd\n" |
| 775 |
"Child writing 7 to efd\n" |
| 776 |
"Child writing 14 to efd\n" |
| 777 |
"Child completed write loop\n" |
| 778 |
"Parent about to read\n" |
| 779 |
"Parent read 28 (0x1c) from efd\n" |
| 780 |
msgstr "" |
| 781 |
|
| 782 |
#. type: SS |
| 783 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 784 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 785 |
#, no-wrap |
| 786 |
msgid "Program source" |
| 787 |
msgstr "" |
| 788 |
|
| 789 |
#. type: Plain text |
| 790 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 791 |
#, no-wrap |
| 792 |
msgid "" |
| 793 |
"#include E<lt>err.hE<gt>\n" |
| 794 |
"#include E<lt>inttypes.hE<gt>\n" |
| 795 |
"#include E<lt>stdio.hE<gt>\n" |
| 796 |
"#include E<lt>stdlib.hE<gt>\n" |
| 797 |
"#include E<lt>sys/eventfd.hE<gt>\n" |
| 798 |
"#include E<lt>sys/types.hE<gt>\n" |
| 799 |
"#include E<lt>unistd.hE<gt>\n" |
| 800 |
"\\&\n" |
| 801 |
"int\n" |
| 802 |
"main(int argc, char *argv[])\n" |
| 803 |
"{\n" |
| 804 |
" int efd;\n" |
| 805 |
" uint64_t u;\n" |
| 806 |
" ssize_t s;\n" |
| 807 |
"\\&\n" |
| 808 |
" if (argc E<lt> 2) {\n" |
| 809 |
" fprintf(stderr, \"Usage: %s E<lt>numE<gt>...\\[rs]n\", argv[0]);\n" |
| 810 |
" exit(EXIT_FAILURE);\n" |
| 811 |
" }\n" |
| 812 |
"\\&\n" |
| 813 |
" efd = eventfd(0, 0);\n" |
| 814 |
" if (efd == -1)\n" |
| 815 |
" err(EXIT_FAILURE, \"eventfd\");\n" |
| 816 |
"\\&\n" |
| 817 |
" switch (fork()) {\n" |
| 818 |
" case 0:\n" |
| 819 |
" for (size_t j = 1; j E<lt> argc; j++) {\n" |
| 820 |
" printf(\"Child writing %s to efd\\[rs]n\", argv[j]);\n" |
| 821 |
" u = strtoull(argv[j], NULL, 0);\n" |
| 822 |
" /* strtoull() allows various bases */\n" |
| 823 |
" s = write(efd, &u, sizeof(uint64_t));\n" |
| 824 |
" if (s != sizeof(uint64_t))\n" |
| 825 |
" err(EXIT_FAILURE, \"write\");\n" |
| 826 |
" }\n" |
| 827 |
" printf(\"Child completed write loop\\[rs]n\");\n" |
| 828 |
"\\&\n" |
| 829 |
" exit(EXIT_SUCCESS);\n" |
| 830 |
"\\&\n" |
| 831 |
" default:\n" |
| 832 |
" sleep(2);\n" |
| 833 |
"\\&\n" |
| 834 |
" printf(\"Parent about to read\\[rs]n\");\n" |
| 835 |
" s = read(efd, &u, sizeof(uint64_t));\n" |
| 836 |
" if (s != sizeof(uint64_t))\n" |
| 837 |
" err(EXIT_FAILURE, \"read\");\n" |
| 838 |
" printf(\"Parent read %w64u (%#w64x) from efd\\[rs]n\", u, u);\n" |
| 839 |
" exit(EXIT_SUCCESS);\n" |
| 840 |
"\\&\n" |
| 841 |
" case -1:\n" |
| 842 |
" err(EXIT_FAILURE, \"fork\");\n" |
| 843 |
" }\n" |
| 844 |
"}\n" |
| 845 |
msgstr "" |
| 846 |
|
| 847 |
#. SRC END |
| 848 |
#. type: SH |
| 849 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 850 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 851 |
#, no-wrap |
| 852 |
msgid "SEE ALSO" |
| 853 |
msgstr "" |
| 854 |
|
| 855 |
#. type: Plain text |
| 856 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 857 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 858 |
msgid "" |
| 859 |
"B<futex>(2), B<pipe>(2), B<poll>(2), B<read>(2), B<select>(2), " |
| 860 |
"B<signalfd>(2), B<timerfd_create>(2), B<write>(2), B<epoll>(7), " |
| 861 |
"B<sem_overview>(7)" |
| 862 |
msgstr "" |
| 863 |
|
| 864 |
#. type: TH |
| 865 |
#: debian-trixie |
| 866 |
#, no-wrap |
| 867 |
msgid "2024-06-15" |
| 868 |
msgstr "" |
| 869 |
|
| 870 |
#. type: TH |
| 871 |
#: debian-trixie |
| 872 |
#, no-wrap |
| 873 |
msgid "Linux man-pages 6.9.1" |
| 874 |
msgstr "" |
| 875 |
|
| 876 |
#. type: Plain text |
| 877 |
#: debian-trixie |
| 878 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 879 |
msgstr "" |
| 880 |
|
| 881 |
#. type: Plain text |
| 882 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 883 |
#, no-wrap |
| 884 |
msgid "" |
| 885 |
"#include E<lt>err.hE<gt>\n" |
| 886 |
"#include E<lt>inttypes.hE<gt>\n" |
| 887 |
"#include E<lt>stdio.hE<gt>\n" |
| 888 |
"#include E<lt>stdlib.hE<gt>\n" |
| 889 |
"#include E<lt>sys/eventfd.hE<gt>\n" |
| 890 |
"#include E<lt>sys/types.hE<gt>\n" |
| 891 |
"#include E<lt>unistd.hE<gt>\n" |
| 892 |
"\\&\n" |
| 893 |
"int\n" |
| 894 |
"main(int argc, char *argv[])\n" |
| 895 |
"{\n" |
| 896 |
" int efd;\n" |
| 897 |
" uint64_t u;\n" |
| 898 |
" ssize_t s;\n" |
| 899 |
"\\&\n" |
| 900 |
" if (argc E<lt> 2) {\n" |
| 901 |
" fprintf(stderr, \"Usage: %s E<lt>numE<gt>...\\[rs]n\", argv[0]);\n" |
| 902 |
" exit(EXIT_FAILURE);\n" |
| 903 |
" }\n" |
| 904 |
"\\&\n" |
| 905 |
" efd = eventfd(0, 0);\n" |
| 906 |
" if (efd == -1)\n" |
| 907 |
" err(EXIT_FAILURE, \"eventfd\");\n" |
| 908 |
"\\&\n" |
| 909 |
" switch (fork()) {\n" |
| 910 |
" case 0:\n" |
| 911 |
" for (size_t j = 1; j E<lt> argc; j++) {\n" |
| 912 |
" printf(\"Child writing %s to efd\\[rs]n\", argv[j]);\n" |
| 913 |
" u = strtoull(argv[j], NULL, 0);\n" |
| 914 |
" /* strtoull() allows various bases */\n" |
| 915 |
" s = write(efd, &u, sizeof(uint64_t));\n" |
| 916 |
" if (s != sizeof(uint64_t))\n" |
| 917 |
" err(EXIT_FAILURE, \"write\");\n" |
| 918 |
" }\n" |
| 919 |
" printf(\"Child completed write loop\\[rs]n\");\n" |
| 920 |
"\\&\n" |
| 921 |
" exit(EXIT_SUCCESS);\n" |
| 922 |
"\\&\n" |
| 923 |
" default:\n" |
| 924 |
" sleep(2);\n" |
| 925 |
"\\&\n" |
| 926 |
" printf(\"Parent about to read\\[rs]n\");\n" |
| 927 |
" s = read(efd, &u, sizeof(uint64_t));\n" |
| 928 |
" if (s != sizeof(uint64_t))\n" |
| 929 |
" err(EXIT_FAILURE, \"read\");\n" |
| 930 |
" printf(\"Parent read %\"PRIu64\" (%#\"PRIx64\") from efd\\[rs]n\", u, u);\n" |
| 931 |
" exit(EXIT_SUCCESS);\n" |
| 932 |
"\\&\n" |
| 933 |
" case -1:\n" |
| 934 |
" err(EXIT_FAILURE, \"fork\");\n" |
| 935 |
" }\n" |
| 936 |
"}\n" |
| 937 |
msgstr "" |
| 938 |
|
| 939 |
#. type: TH |
| 940 |
#: fedora-44 fedora-rawhide |
| 941 |
#, no-wrap |
| 942 |
msgid "2024-07-23" |
| 943 |
msgstr "" |
| 944 |
|
| 945 |
#. type: TH |
| 946 |
#: fedora-44 fedora-rawhide |
| 947 |
#, no-wrap |
| 948 |
msgid "Linux man-pages 6.13" |
| 949 |
msgstr "" |
| 950 |
|
| 951 |
#. type: TH |
| 952 |
#: mageia-cauldron |
| 953 |
#, no-wrap |
| 954 |
msgid "2026-02-08" |
| 955 |
msgstr "" |
| 956 |
|
| 957 |
#. type: TH |
| 958 |
#: mageia-cauldron |
| 959 |
#, no-wrap |
| 960 |
msgid "Linux man-pages 6.17" |
| 961 |
msgstr "" |
| 962 |
|
| 963 |
#. type: TH |
| 964 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 965 |
#, no-wrap |
| 966 |
msgid "Linux man-pages (unreleased)" |
| 967 |
msgstr "" |