Debian Codegraph @

po/ro/man3/mq_notify.3.po

raw
1 # Romanian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Remus-Gabriel Chelu <[email protected]>, 2025.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.25.1\n"
8 "POT-Creation-Date: 2026-06-05 06:31+0200\n"
9 "PO-Revision-Date: 2025-11-05 19:10+0100\n"
10 "Last-Translator: Remus-Gabriel Chelu <[email protected]>\n"
11 "Language-Team: Romanian <[email protected]>\n"
12 "Language: ro\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
17 "20)) ? 1 : 2;\n"
18 "X-Generator: Poedit 3.6\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "mq_notify"
25 msgstr "mq_notify"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 februarie 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "Pagini de manual de Linux 6.18"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "NUME"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid "mq_notify - register for notification when a message is available"
51 msgstr ""
52 "mq_notify - înregistrare pentru notificare atunci când un mesaj este "
53 "disponibil"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "BIBLIOTECA"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Real-time library (I<librt>,\\ I<-lrt>)"
66 msgstr "Biblioteca de timp real (I<librt>, I<-lrt>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "SINOPSIS"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid ""
80 "B<#include E<lt>mqueue.hE<gt>>\n"
81 "B<#include E<lt>signal.hE<gt> >/* Definition of SIGEV_* constants */\n"
82 msgstr ""
83 "B<#include E<lt>mqueue.hE<gt>>\n"
84 "B<#include E<lt>signal.hE<gt> >/* Definiția constantelor SIGEV_* */\n"
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid "B<int mq_notify(mqd_t >I<mqdes>B<, const struct sigevent *>I<sevp>B<);>\n"
91 msgstr "B<int mq_notify(mqd_t >I<mqdes>B<, const struct sigevent *>I<sevp>B<);>\n"
92
93 #. type: SH
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 #, no-wrap
97 msgid "DESCRIPTION"
98 msgstr "DESCRIERE"
99
100 #. type: Plain text
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 msgid ""
104 "B<mq_notify>() allows the calling process to register or unregister for "
105 "delivery of an asynchronous notification when a new message arrives on the "
106 "empty message queue referred to by the message queue descriptor I<mqdes>."
107 msgstr ""
108 "B<mq_notify>() permite procesului apelant să se înregistreze sau să-și "
109 "anuleze înregistarea pentru a primi o notificare asincronă atunci când un "
110 "mesaj nou sosește în coada de mesaje goală la care se face referire în "
111 "descriptorul cozii de mesaje I<mqdes>."
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 msgid ""
117 "The I<sevp> argument is a pointer to a I<sigevent> structure. For the "
118 "definition and general details of this structure, see B<sigevent>(3type)."
119 msgstr ""
120 "Argumentul I<sevp> este un indicator către o structură I<sigevent>. Pentru "
121 "definiția și detaliile generale ale acestei structuri, a se vedea "
122 "B<sigevent>(3type)."
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 msgid ""
128 "If I<sevp> is a non-null pointer, then B<mq_notify>() registers the calling "
129 "process to receive message notification. The I<sigev_notify> field of the "
130 "I<sigevent> structure to which I<sevp> points specifies how notification is "
131 "to be performed. This field has one of the following values:"
132 msgstr ""
133 "Dacă I<sevp> este un indicator nenul, atunci B<mq_notify>() înregistrează "
134 "procesul apelant pentru a primi notificarea mesajului. Câmpul "
135 "I<sigev_notify> din structura I<sigevent> către care indică I<sevp> "
136 "specifică modul în care trebuie efectuată notificarea. Acest câmp are una "
137 "dintre următoarele valori:"
138
139 #. type: TP
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 #, no-wrap
143 msgid "B<SIGEV_NONE>"
144 msgstr "B<SIGEV_NONE>"
145
146 #. When is SIGEV_NONE useful?
147 #. type: Plain text
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 msgid ""
151 "A \"null\" notification: the calling process is registered as the target for "
152 "notification, but when a message arrives, no notification is sent."
153 msgstr ""
154 "O notificare „nulă”: procesul apelant este înregistrat ca țintă pentru "
155 "notificare, dar atunci când sosește un mesaj, nu este trimisă nicio "
156 "notificare."
157
158 #. type: TP
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 #, no-wrap
162 msgid "B<SIGEV_SIGNAL>"
163 msgstr "B<SIGEV_SIGNAL>"
164
165 #. I don't know of other implementations that set
166 #. si_pid and si_uid -- MTK
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 "Notify the process by sending the signal specified in I<sigev_signo>. See "
172 "B<sigevent>(3type) for general details. The I<si_code> field of the "
173 "I<siginfo_t> structure will be set to B<SI_MESGQ>. In addition, I<si_pid> "
174 "will be set to the PID of the process that sent the message, and I<si_uid> "
175 "will be set to the real user ID of the sending process."
176 msgstr ""
177 "Notifică procesul prin trimiterea semnalului specificat în I<sigev_signo>. A "
178 "se vedea B<sigevent>(3type) pentru detalii generale. Câmpul I<si_code> din "
179 "structura I<siginfo_t> va fi stabilit la B<SI_MESGQ>. În plus, I<si_pid> va "
180 "fi definit la PID-ul procesului care a trimis mesajul, iar I<si_uid> va fi "
181 "definit la ID-ul utilizatorului real al procesului de trimitere."
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<SIGEV_THREAD>"
188 msgstr "B<SIGEV_THREAD>"
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 "Upon message delivery, invoke I<sigev_notify_function> as if it were the "
195 "start function of a new thread. See B<sigevent>(3type) for details."
196 msgstr ""
197 "La livrarea mesajului, se invocă I<sigev_notify_function> ca și cum ar fi "
198 "funcția de pornire a unui nou fir de execuție. Consultați B<sigevent>(3type) "
199 "pentru detalii."
200
201 #. type: Plain text
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 msgid ""
205 "Only one process can be registered to receive notification from a message "
206 "queue."
207 msgstr ""
208 "Un singur proces poate fi înregistrat pentru a primi notificări de la o "
209 "coadă de mesaje."
210
211 #. type: Plain text
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 msgid ""
215 "If I<sevp> is NULL, and the calling process is currently registered to "
216 "receive notifications for this message queue, then the registration is "
217 "removed; another process can then register to receive a message notification "
218 "for this queue."
219 msgstr ""
220 "Dacă I<sevp> este NULL, iar procesul apelant este înregistrat în prezent "
221 "pentru a primi notificări pentru această coadă de mesaje, atunci "
222 "înregistrarea este eliminată; un alt proces se poate înregistra apoi pentru "
223 "a primi o notificare de mesaj pentru această coadă."
224
225 #. type: Plain text
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 msgid ""
229 "Message notification occurs only when a new message arrives and the queue "
230 "was previously empty. If the queue was not empty at the time "
231 "B<mq_notify>() was called, then a notification will occur only after the "
232 "queue is emptied and a new message arrives."
233 msgstr ""
234 "Notificarea mesajelor are loc numai atunci când sosește un mesaj nou și "
235 "coada a fost golită anterior. Dacă coada nu era goală în momentul apelării "
236 "B<mq_notify>(), atunci o notificare va avea loc numai după ce coada este "
237 "golită și sosește un mesaj nou."
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 msgid ""
243 "If another process or thread is waiting to read a message from an empty "
244 "queue using B<mq_receive>(3), then any message notification registration is "
245 "ignored: the message is delivered to the process or thread calling "
246 "B<mq_receive>(3), and the message notification registration remains in "
247 "effect."
248 msgstr ""
249 "Dacă un alt proces sau fir de execuție așteaptă să citească un mesaj dintr-o "
250 "coadă goală folosind B<mq_receive>(3), atunci orice înregistrare de "
251 "notificare a mesajului este ignorată: mesajul este livrat procesului sau "
252 "firului de execuție care apelează B<mq_receive>(3), iar înregistrarea de "
253 "notificare a mesajului rămâne în vigoare."
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 msgid ""
259 "Notification occurs once: after a notification is delivered, the "
260 "notification registration is removed, and another process can register for "
261 "message notification. If the notified process wishes to receive the next "
262 "notification, it can use B<mq_notify>() to request a further notification. "
263 "This should be done before emptying all unread messages from the queue. "
264 "(Placing the queue in nonblocking mode is useful for emptying the queue of "
265 "messages without blocking once it is empty.)"
266 msgstr ""
267 "Notificarea are loc o singură dată: după livrarea unei notificări, "
268 "înregistrarea notificării este eliminată, iar un alt proces se poate "
269 "înregistra pentru notificarea mesajului. Dacă procesul notificat dorește să "
270 "primească următoarea notificare, acesta poate utiliza B<mq_notify>() pentru "
271 "a solicita o nouă notificare. Acest lucru trebuie făcut înainte de golirea "
272 "tuturor mesajelor necitite din coadă; (pasarea cozii în modul de ne-blocare "
273 "este utilă pentru golirea cozii de mesaje fără blocare odată ce aceasta este "
274 "goală)."
275
276 #. type: SH
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 #, no-wrap
280 msgid "RETURN VALUE"
281 msgstr "VALOAREA RETURNATĂ"
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid ""
287 "On success B<mq_notify>() returns 0; on error, -1 is returned, with "
288 "I<errno> set to indicate the error."
289 msgstr ""
290 "În caz de succes, B<mq_notify>() returnează 0; în caz de eroare, se "
291 "returnează -1, cu I<errno> configurată pentru a indica eroarea."
292
293 #. type: SH
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 #, no-wrap
297 msgid "ERRORS"
298 msgstr "ERORI-IEȘIRE"
299
300 #. type: TP
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 #, no-wrap
304 msgid "B<EBADF>"
305 msgstr "B<EBADF>"
306
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 msgid "The message queue descriptor specified in I<mqdes> is invalid."
311 msgstr "Descriptorul de coadă de mesaje specificat în I<mqdes> nu este valid."
312
313 #. type: TP
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, no-wrap
317 msgid "B<EBUSY>"
318 msgstr "B<EBUSY>"
319
320 #. type: Plain text
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 msgid ""
324 "Another process has already registered to receive notification for this "
325 "message queue."
326 msgstr ""
327 "Un alt proces s-a înregistrat deja pentru a primi notificare pentru această "
328 "coadă de mesaje."
329
330 #. type: TP
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "B<EINVAL>"
335 msgstr "B<EINVAL>"
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid ""
341 "I<sevp-E<gt>sigev_notify> is not one of the permitted values; or I<sevp-"
342 "E<gt>sigev_notify> is B<SIGEV_SIGNAL> and I<sevp-E<gt>sigev_signo> is not a "
343 "valid signal number."
344 msgstr ""
345 "I<sevp-E<gt>sigev_notify> nu este una dintre valorile permise; sau I<sevp-"
346 "E<gt>sigev_notify> este B<SIGEV_SIGNAL> și I<sevp-E<gt>sigev_signo> nu este "
347 "un număr de semnal valid."
348
349 #. type: TP
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid "B<ENOMEM>"
354 msgstr "B<ENOMEM>"
355
356 #. type: Plain text
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 msgid "Insufficient memory."
360 msgstr "Memorie insuficientă."
361
362 #. Linux does not do this
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 msgid ""
367 "POSIX.1-2008 says that an implementation I<may> generate an B<EINVAL> error "
368 "if I<sevp> is NULL, and the caller is not currently registered to receive "
369 "notifications for the queue I<mqdes>."
370 msgstr ""
371 "POSIX.1-2008 spune că o implementare I<poate> genera o eroare B<EINVAL> dacă "
372 "I<sevp> este NULL, iar apelantul nu este înregistrat în prezent pentru a "
373 "primi notificări pentru coada I<mqdes>."
374
375 #. type: SH
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 #, no-wrap
379 msgid "ATTRIBUTES"
380 msgstr "ATRIBUTE"
381
382 #. type: Plain text
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 msgid ""
386 "For an explanation of the terms used in this section, see B<attributes>(7)."
387 msgstr ""
388 "Pentru o explicație a termenilor folosiți în această secțiune, a se vedea "
389 "B<attributes>(7)."
390
391 #. type: tbl table
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 #, no-wrap
395 msgid "Interface"
396 msgstr "Interfață"
397
398 #. type: tbl table
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 #, no-wrap
402 msgid "Attribute"
403 msgstr "Atribut"
404
405 #. type: tbl table
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 #, no-wrap
409 msgid "Value"
410 msgstr "Valoare"
411
412 #. type: tbl table
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, no-wrap
416 msgid ".na\n"
417 msgstr ".na\n"
418
419 #. type: tbl table
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid ".nh\n"
424 msgstr ".nh\n"
425
426 #. type: tbl table
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 #, no-wrap
430 msgid "B<mq_notify>()"
431 msgstr "B<mq_notify>()"
432
433 #. type: tbl table
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 #, no-wrap
437 msgid "Thread safety"
438 msgstr "Siguranța firelor"
439
440 #. type: tbl table
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 #, no-wrap
444 msgid "MT-Safe"
445 msgstr "MT-Safe"
446
447 #. type: SH
448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
450 #, no-wrap
451 msgid "VERSIONS"
452 msgstr "VERSIUNI"
453
454 #. type: SS
455 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
456 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
457 #, no-wrap
458 msgid "C library/kernel differences"
459 msgstr "Diferențe între biblioteca C și nucleu"
460
461 #. type: Plain text
462 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
463 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
464 msgid ""
465 "In the glibc implementation, the B<mq_notify>() library function is "
466 "implemented on top of the system call of the same name. When I<sevp> is "
467 "NULL, or specifies a notification mechanism other than B<SIGEV_THREAD>, the "
468 "library function directly invokes the system call. For B<SIGEV_THREAD>, "
469 "much of the implementation resides within the library, rather than the "
470 "kernel. (This is necessarily so, since the thread involved in handling the "
471 "notification is one that must be managed by the C library POSIX threads "
472 "implementation.) The implementation involves the use of a raw "
473 "B<netlink>(7) socket and creates a new thread for each notification that is "
474 "delivered to the process."
475 msgstr ""
476 "În implementarea glibc, funcția de bibliotecă B<mq_notify>() este "
477 "implementată peste apelul de sistem cu același nume. Atunci când I<sevp> "
478 "este NULL sau specifică un alt mecanism de notificare decât B<SIGEV_THREAD>, "
479 "funcția de bibliotecă invocă direct apelul sistemului. Pentru "
480 "B<SIGEV_THREAD>, o mare parte din implementare se află în bibliotecă, și nu "
481 "în nucleu; (acest lucru este necesar, deoarece firul implicat în gestionarea "
482 "notificării este unul care trebuie gestionat de implementarea firelor POSIX "
483 "din biblioteca C). Implementarea implică utilizarea unui soclu B<netlink>(7) "
484 "brut și creează un nou fir pentru fiecare notificare care este transmisă "
485 "procesului."
486
487 #. type: SH
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 #, no-wrap
491 msgid "STANDARDS"
492 msgstr "STANDARDE"
493
494 #. type: Plain text
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 msgid "POSIX.1-2008."
498 msgstr "POSIX.1-2008."
499
500 #. type: SH
501 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
502 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
503 #, no-wrap
504 msgid "HISTORY"
505 msgstr "ISTORIC"
506
507 #. type: Plain text
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 msgid "POSIX.1-2001."
511 msgstr "POSIX.1-2001."
512
513 #. type: SH
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 #, no-wrap
517 msgid "EXAMPLES"
518 msgstr "EXEMPLE"
519
520 #. type: Plain text
521 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
522 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
523 msgid ""
524 "The following program registers a notification request for the message queue "
525 "named in its command-line argument. Notification is performed by creating a "
526 "thread. The thread executes a function which reads one message from the "
527 "queue and then terminates the process."
528 msgstr ""
529 "Următorul program înregistrează o cerere de notificare pentru coada de "
530 "mesaje numită în argumentul său din linia de comandă. Notificarea este "
531 "efectuată prin crearea unui fir de execuție. Firul execută o funcție care "
532 "citește un mesaj din coadă și apoi termină procesul."
533
534 #. type: SS
535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
537 #, no-wrap
538 msgid "Program source"
539 msgstr "Sursa programului"
540
541 #. type: Plain text
542 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
543 #: opensuse-tumbleweed
544 #, no-wrap
545 msgid ""
546 "#include E<lt>err.hE<gt>\n"
547 "#include E<lt>mqueue.hE<gt>\n"
548 "#include E<lt>pthread.hE<gt>\n"
549 "#include E<lt>signal.hE<gt>\n"
550 "#include E<lt>stdio.hE<gt>\n"
551 "#include E<lt>stdlib.hE<gt>\n"
552 "#include E<lt>unistd.hE<gt>\n"
553 "\\&\n"
554 "static void /* Thread start function */\n"
555 "tfunc(union sigval sv)\n"
556 "{\n"
557 " struct mq_attr attr;\n"
558 " ssize_t nr;\n"
559 " void *buf;\n"
560 " mqd_t mqdes = *((mqd_t *) sv.sival_ptr);\n"
561 "\\&\n"
562 " /* Determine max.\\& msg size; allocate buffer to receive msg */\n"
563 "\\&\n"
564 " if (mq_getattr(mqdes, &attr) == -1)\n"
565 " err(EXIT_FAILURE, \"mq_getattr\");\n"
566 " buf = malloc(attr.mq_msgsize);\n"
567 " if (buf == NULL)\n"
568 " err(EXIT_FAILURE, \"malloc\");\n"
569 "\\&\n"
570 " nr = mq_receive(mqdes, buf, attr.mq_msgsize, NULL);\n"
571 " if (nr == -1)\n"
572 " err(EXIT_FAILURE, \"mq_receive\");\n"
573 "\\&\n"
574 " printf(\"Read %zd bytes from MQ\\[rs]n\", nr);\n"
575 " free(buf);\n"
576 " exit(EXIT_SUCCESS); /* Terminate the process */\n"
577 "}\n"
578 "\\&\n"
579 "int\n"
580 "main(int argc, char *argv[])\n"
581 "{\n"
582 " mqd_t mqdes;\n"
583 " struct sigevent sev;\n"
584 "\\&\n"
585 " if (argc != 2) {\n"
586 " fprintf(stderr, \"Usage: %s E<lt>mq-nameE<gt>\\[rs]n\", argv[0]);\n"
587 " exit(EXIT_FAILURE);\n"
588 " }\n"
589 "\\&\n"
590 " mqdes = mq_open(argv[1], O_RDONLY);\n"
591 " if (mqdes == (mqd_t) -1)\n"
592 " err(EXIT_FAILURE, \"mq_open\");\n"
593 "\\&\n"
594 " sev.sigev_notify = SIGEV_THREAD;\n"
595 " sev.sigev_notify_function = tfunc;\n"
596 " sev.sigev_notify_attributes = NULL;\n"
597 " sev.sigev_value.sival_ptr = &mqdes; /* Arg.\\& to thread func. */\n"
598 " if (mq_notify(mqdes, &sev) == -1)\n"
599 " err(EXIT_FAILURE, \"mq_notify\");\n"
600 "\\&\n"
601 " pause(); /* Process will be terminated by thread function */\n"
602 "}\n"
603 msgstr ""
604 "#include E<lt>err.hE<gt>\n"
605 "#include E<lt>mqueue.hE<gt>\n"
606 "#include E<lt>pthread.hE<gt>\n"
607 "#include E<lt>signal.hE<gt>\n"
608 "#include E<lt>stdio.hE<gt>\n"
609 "#include E<lt>stdlib.hE<gt>\n"
610 "#include E<lt>unistd.hE<gt>\n"
611 "\\&\n"
612 "#define handle_error(msg) \\[rs]\n"
613 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
614 "\\&\n"
615 "static void /* Firul pornește funcția */\n"
616 "tfunc(union sigval sv)\n"
617 "{\n"
618 " struct mq_attr attr;\n"
619 " ssize_t nr;\n"
620 " void *buf;\n"
621 " mqd_t mqdes = *((mqd_t *) sv.sival_ptr);\n"
622 "\\&\n"
623 " /* Determină dimensiunea maximă a mesajului; alocă memorie tampon pentru primirea mesajului */\n"
624 "\\&\n"
625 " if (mq_getattr(mqdes, &attr) == -1)\n"
626 " err(EXIT_FAILURE, \"mq_getattr\");\n"
627 " buf = malloc(attr.mq_msgsize);\n"
628 " if (buf == NULL)\n"
629 " err(EXIT_FAILURE, \"malloc\");\n"
630 "\\&\n"
631 " nr = mq_receive(mqdes, buf, attr.mq_msgsize, NULL);\n"
632 " if (nr == -1)\n"
633 " err(EXIT_FAILURE, \"mq_receive\");\n"
634 "\\&\n"
635 " printf(\"Citiți %zd octeți din MQ\\[rs]n\", nr);\n"
636 " free(buf);\n"
637 " exit(EXIT_SUCCESS); /* Terminarea procesului */\n"
638 "}\n"
639 "\\&\n"
640 "int\n"
641 "main(int argc, char *argv[])\n"
642 "{\n"
643 " mqd_t mqdes;\n"
644 " struct sigevent sev;\n"
645 "\\&\n"
646 " if (argc != 2) {\n"
647 " fprintf(stderr, \"Utilizare: %s E<lt>mq-nameE<gt>\\[rs]n\", argv[0]);\n"
648 " exit(EXIT_FAILURE);\n"
649 " }\n"
650 "\\&\n"
651 " mqdes = mq_open(argv[1], O_RDONLY);\n"
652 " if (mqdes == (mqd_t) -1)\n"
653 " err(EXIT_FAILURE, \"mq_open\");\n"
654 "\\&\n"
655 " sev.sigev_notify = SIGEV_THREAD;\n"
656 " sev.sigev_notify_function = tfunc;\n"
657 " sev.sigev_notify_attributes = NULL;\n"
658 " sev.sigev_value.sival_ptr = &mqdes; /* Argument pentru funcția firului */\n"
659 " if (mq_notify(mqdes, &sev) == -1)\n"
660 " err(EXIT_FAILURE, \"mq_notify\");\n"
661 "\\&\n"
662 " pause(); /* Procesul va fi finalizat de funcția firului */\n"
663 "}\n"
664
665 #. SRC END
666 #. type: SH
667 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
668 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
669 #, no-wrap
670 msgid "SEE ALSO"
671 msgstr "CONSULTAȚI ȘI"
672
673 #. type: Plain text
674 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
675 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
676 msgid ""
677 "B<mq_close>(3), B<mq_getattr>(3), B<mq_open>(3), B<mq_receive>(3), "
678 "B<mq_send>(3), B<mq_unlink>(3), B<mq_overview>(7), B<sigevent>(3type)"
679 msgstr ""
680 "B<mq_close>(3), B<mq_getattr>(3), B<mq_open>(3), B<mq_receive>(3), "
681 "B<mq_send>(3), B<mq_unlink>(3), B<mq_overview>(7), B<sigevent>(3type)"
682
683 #. type: TH
684 #: debian-trixie
685 #, no-wrap
686 msgid "2024-06-15"
687 msgstr "15 iunie 2024"
688
689 #. type: TH
690 #: debian-trixie
691 #, no-wrap
692 msgid "Linux man-pages 6.9.1"
693 msgstr "Pagini de manual de Linux 6.9.1"
694
695 #. type: Plain text
696 #: debian-trixie
697 msgid "Real-time library (I<librt>, I<-lrt>)"
698 msgstr "Biblioteca de timp real (I<librt>, I<-lrt>)"
699
700 #. type: Plain text
701 #: debian-trixie fedora-44 fedora-rawhide
702 #, no-wrap
703 msgid ""
704 "#include E<lt>mqueue.hE<gt>\n"
705 "#include E<lt>pthread.hE<gt>\n"
706 "#include E<lt>signal.hE<gt>\n"
707 "#include E<lt>stdio.hE<gt>\n"
708 "#include E<lt>stdlib.hE<gt>\n"
709 "#include E<lt>unistd.hE<gt>\n"
710 "\\&\n"
711 "#define handle_error(msg) \\[rs]\n"
712 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
713 "\\&\n"
714 "static void /* Thread start function */\n"
715 "tfunc(union sigval sv)\n"
716 "{\n"
717 " struct mq_attr attr;\n"
718 " ssize_t nr;\n"
719 " void *buf;\n"
720 " mqd_t mqdes = *((mqd_t *) sv.sival_ptr);\n"
721 "\\&\n"
722 " /* Determine max. msg size; allocate buffer to receive msg */\n"
723 "\\&\n"
724 " if (mq_getattr(mqdes, &attr) == -1)\n"
725 " handle_error(\"mq_getattr\");\n"
726 " buf = malloc(attr.mq_msgsize);\n"
727 " if (buf == NULL)\n"
728 " handle_error(\"malloc\");\n"
729 "\\&\n"
730 " nr = mq_receive(mqdes, buf, attr.mq_msgsize, NULL);\n"
731 " if (nr == -1)\n"
732 " handle_error(\"mq_receive\");\n"
733 "\\&\n"
734 " printf(\"Read %zd bytes from MQ\\[rs]n\", nr);\n"
735 " free(buf);\n"
736 " exit(EXIT_SUCCESS); /* Terminate the process */\n"
737 "}\n"
738 "\\&\n"
739 "int\n"
740 "main(int argc, char *argv[])\n"
741 "{\n"
742 " mqd_t mqdes;\n"
743 " struct sigevent sev;\n"
744 "\\&\n"
745 " if (argc != 2) {\n"
746 " fprintf(stderr, \"Usage: %s E<lt>mq-nameE<gt>\\[rs]n\", argv[0]);\n"
747 " exit(EXIT_FAILURE);\n"
748 " }\n"
749 "\\&\n"
750 " mqdes = mq_open(argv[1], O_RDONLY);\n"
751 " if (mqdes == (mqd_t) -1)\n"
752 " handle_error(\"mq_open\");\n"
753 "\\&\n"
754 " sev.sigev_notify = SIGEV_THREAD;\n"
755 " sev.sigev_notify_function = tfunc;\n"
756 " sev.sigev_notify_attributes = NULL;\n"
757 " sev.sigev_value.sival_ptr = &mqdes; /* Arg. to thread func. */\n"
758 " if (mq_notify(mqdes, &sev) == -1)\n"
759 " handle_error(\"mq_notify\");\n"
760 "\\&\n"
761 " pause(); /* Process will be terminated by thread function */\n"
762 "}\n"
763 msgstr ""
764 "#include E<lt>mqueue.hE<gt>\n"
765 "#include E<lt>pthread.hE<gt>\n"
766 "#include E<lt>signal.hE<gt>\n"
767 "#include E<lt>stdio.hE<gt>\n"
768 "#include E<lt>stdlib.hE<gt>\n"
769 "#include E<lt>unistd.hE<gt>\n"
770 "\\&\n"
771 "#define handle_error(msg) \\[rs]\n"
772 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
773 "\\&\n"
774 "static void /* Firul pornește funcția */\n"
775 "tfunc(union sigval sv)\n"
776 "{\n"
777 " struct mq_attr attr;\n"
778 " ssize_t nr;\n"
779 " void *buf;\n"
780 " mqd_t mqdes = *((mqd_t *) sv.sival_ptr);\n"
781 "\\&\n"
782 " /* Determină dimensiunea maximă a mesajului; alocă memorie tampon pentru primirea mesajului */\n"
783 "\\&\n"
784 " if (mq_getattr(mqdes, &attr) == -1)\n"
785 " handle_error(\"mq_getattr\");\n"
786 " buf = malloc(attr.mq_msgsize);\n"
787 " if (buf == NULL)\n"
788 " handle_error(\"malloc\");\n"
789 "\\&\n"
790 " nr = mq_receive(mqdes, buf, attr.mq_msgsize, NULL);\n"
791 " if (nr == -1)\n"
792 " handle_error(\"mq_receive\");\n"
793 "\\&\n"
794 " printf(\"Citiți %zd octeți din MQ\\[rs]n\", nr);\n"
795 " free(buf);\n"
796 " exit(EXIT_SUCCESS); /* Terminarea procesului */\n"
797 "}\n"
798 "\\&\n"
799 "int\n"
800 "main(int argc, char *argv[])\n"
801 "{\n"
802 " mqd_t mqdes;\n"
803 " struct sigevent sev;\n"
804 "\\&\n"
805 " if (argc != 2) {\n"
806 " fprintf(stderr, \"Utilizare: %s E<lt>mq-nameE<gt>\\[rs]n\", argv[0]);\n"
807 " exit(EXIT_FAILURE);\n"
808 " }\n"
809 "\\&\n"
810 " mqdes = mq_open(argv[1], O_RDONLY);\n"
811 " if (mqdes == (mqd_t) -1)\n"
812 " handle_error(\"mq_open\");\n"
813 "\\&\n"
814 " sev.sigev_notify = SIGEV_THREAD;\n"
815 " sev.sigev_notify_function = tfunc;\n"
816 " sev.sigev_notify_attributes = NULL;\n"
817 " sev.sigev_value.sival_ptr = &mqdes; /* Argument pentru funcția firului */\n"
818 " if (mq_notify(mqdes, &sev) == -1)\n"
819 " handle_error(\"mq_notify\");\n"
820 "\\&\n"
821 " pause(); /* Procesul va fi finalizat de funcția firului */\n"
822 "}\n"
823
824 #. type: TH
825 #: fedora-44 fedora-rawhide
826 #, no-wrap
827 msgid "2024-07-23"
828 msgstr "23 iulie 2024"
829
830 #. type: TH
831 #: fedora-44 fedora-rawhide
832 #, no-wrap
833 msgid "Linux man-pages 6.13"
834 msgstr "Pagini de manual de Linux 6.13"
835
836 #. type: TH
837 #: mageia-cauldron
838 #, no-wrap
839 msgid "Linux man-pages 6.17"
840 msgstr "Pagini de manual de Linux 6.17"
841
842 #. type: TH
843 #: opensuse-leap-16-1 opensuse-tumbleweed
844 #, no-wrap
845 msgid "Linux man-pages (unreleased)"
846 msgstr "Pagini de manual Linux (nepublicate)"