Debian Codegraph @

po/ro/man2/tee.2.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]>, 2024, 2025.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.21.0\n"
8 "POT-Creation-Date: 2026-06-05 06:48+0200\n"
9 "PO-Revision-Date: 2025-06-02 09:53+0200\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.5\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 "tee"
25 msgstr "tee"
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 "tee - duplicating pipe content"
51 msgstr "tee - duplică conținutul conductelor"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr "BIBLIOTECA"
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Standard C library (I<libc>,\\ I<-lc>)"
64 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr "SINOPSIS"
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid ""
78 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
79 "B<#include E<lt>fcntl.hE<gt>>\n"
80 msgstr ""
81 "B<#define _GNU_SOURCE> /* Consultați feature_test_macros(7) */\n"
82 "B<#include E<lt>fcntl.hE<gt>>\n"
83
84 #. type: Plain text
85 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
86 #: opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid "B<ssize_t tee(int >I<fd_in>B<, int >I<fd_out>B<, size_t >I<size>B<, unsigned int >I<flags>B<);>\n"
89 msgstr "B<ssize_t tee(int >I<fd_in>B<, int >I<fd_out>B<, size_t >I<size>B<, unsigned int >I<flags>B<);>\n"
90
91 #. Return type was long before glibc 2.7
92 #. type: SH
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, no-wrap
96 msgid "DESCRIPTION"
97 msgstr "DESCRIERE"
98
99 #
100 #
101 #. Example programs http://brick.kernel.dk/snaps
102 #. add a "tee(in, out1, out2)" system call that duplicates the pages
103 #. (again, incrementing their reference count, not copying the data) from
104 #. one pipe to two other pipes.
105 #. type: Plain text
106 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
107 #: opensuse-leap-16-1 opensuse-tumbleweed
108 msgid ""
109 "B<tee>() duplicates up to I<size> bytes of data from the pipe referred to "
110 "by the file descriptor I<fd_in> to the pipe referred to by the file "
111 "descriptor I<fd_out>. It does not consume the data that is duplicated from "
112 "I<fd_in>; therefore, that data can be copied by a subsequent B<splice>(2)."
113 msgstr ""
114 "B<tee>() duplică până la I<size> octeți de date din conducta la care se "
115 "referă descriptorul de fișier I<fd_in> în conducta la care se referă "
116 "descriptorul de fișier I<fd_out>. Nu consumă datele care sunt duplicate din "
117 "I<fd_in>; prin urmare, datele respective pot fi copiate de un B<splice>(2) "
118 "subsecvent."
119
120 #. type: Plain text
121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
123 msgid ""
124 "I<flags> is a bit mask that is composed by ORing together zero or more of "
125 "the following values:"
126 msgstr ""
127 "I<flags> este o mască de biți care se compune prin combinarea prin OR "
128 "împreună cu zero sau mai multe dintre următoarele valori:"
129
130 #. type: TP
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 #, no-wrap
134 msgid "B<SPLICE_F_MOVE>"
135 msgstr "B<SPLICE_F_MOVE>"
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 msgid "Currently has no effect for B<tee>(); see B<splice>(2)."
141 msgstr "În prezent nu are efect pentru B<tee>(); a se vedea B<splice>(2)."
142
143 #. type: TP
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 #, no-wrap
147 msgid "B<SPLICE_F_NONBLOCK>"
148 msgstr "B<SPLICE_F_NONBLOCK>"
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid "Do not block on I/O; see B<splice>(2) for further details."
154 msgstr ""
155 "Nu blochează operațiile de In/Ieș; a se vedea B<splice>(2) pentru mai multe "
156 "detalii."
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<SPLICE_F_MORE>"
163 msgstr "B<SPLICE_F_MORE>"
164
165 #. type: Plain text
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 msgid ""
169 "Currently has no effect for B<tee>(), but may be implemented in the future; "
170 "see B<splice>(2)."
171 msgstr ""
172 "Currently has no effect for B<tee>(), but may be implemented in the future; "
173 "see B<splice>(2)."
174
175 #. type: TP
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 #, no-wrap
179 msgid "B<SPLICE_F_GIFT>"
180 msgstr "B<SPLICE_F_GIFT>"
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 msgid "Unused for B<tee>(); see B<vmsplice>(2)."
186 msgstr "Neutilizat pentru B<tee>(); a se vedea B<vmsplice>(2)."
187
188 #. type: SH
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 #, no-wrap
192 msgid "RETURN VALUE"
193 msgstr "VALOAREA RETURNATĂ"
194
195 #. type: Plain text
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 msgid ""
199 "Upon successful completion, B<tee>() returns the number of bytes that were "
200 "duplicated between the input and output. A return value of 0 means that "
201 "there was no data to transfer, and it would not make sense to block, because "
202 "there are no writers connected to the write end of the pipe referred to by "
203 "I<fd_in>."
204 msgstr ""
205 "La finalizarea cu succes, B<tee>() returnează numărul de octeți care au fost "
206 "duplicați între intrare și ieșire. O valoare de returnare 0 înseamnă că nu a "
207 "existat nici un transfer de date și nu ar avea sens să se blocheze, deoarece "
208 "nu există scriitori conectați la capătul de scriere al conductei la care "
209 "face referire I<fd_in>."
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 "On error, B<tee>() returns -1 and I<errno> is set to indicate the error."
216 msgstr ""
217 "În caz de eroare, B<tee>() returnează -1, iar I<errno> este configurată "
218 "pentru a indica eroarea."
219
220 #. type: SH
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 #, no-wrap
224 msgid "ERRORS"
225 msgstr "ERORI-IEȘIRE"
226
227 #. type: TP
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 #, no-wrap
231 msgid "B<EAGAIN>"
232 msgstr "B<EAGAIN>"
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 msgid ""
238 "B<SPLICE_F_NONBLOCK> was specified in I<flags> or one of the file "
239 "descriptors had been marked as nonblocking (B<O_NONBLOCK>)B<,> and the "
240 "operation would block."
241 msgstr ""
242 "B<SPLICE_F_NONBLOCK> a fost specificat în I<fanioane> sau unul dintre "
243 "descriptorii de fișiere a fost marcat ca neblocant (B<O_NONBLOCK>)B<,> și "
244 "operația s-ar putea bloca."
245
246 #. type: TP
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 #, no-wrap
250 msgid "B<EINVAL>"
251 msgstr "B<EINVAL>"
252
253 #. type: Plain text
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 msgid ""
257 "I<fd_in> or I<fd_out> does not refer to a pipe; or I<fd_in> and I<fd_out> "
258 "refer to the same pipe."
259 msgstr ""
260 "I<fd_in> sau I<fd_out> nu se referă la o conductă; sau I<fd_in> și I<fd_out> "
261 "se referă la aceeași conductă."
262
263 #. type: TP
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 #, no-wrap
267 msgid "B<ENOMEM>"
268 msgstr "B<ENOMEM>"
269
270 #. type: Plain text
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 msgid "Out of memory."
274 msgstr "Memorie insuficientă."
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 "STANDARDS"
281 msgstr "STANDARDE"
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 "Linux."
287 msgstr "Linux."
288
289 #. type: SH
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "HISTORY"
294 msgstr "ISTORIC"
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid "Linux 2.6.17, glibc 2.5."
300 msgstr "Linux 2.6.17, glibc 2.5."
301
302 #. type: SH
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 #, no-wrap
306 msgid "NOTES"
307 msgstr "NOTE"
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 "Conceptually, B<tee>() copies the data between the two pipes. In reality "
314 "no real data copying takes place though: under the covers, B<tee>() assigns "
315 "data to the output by merely grabbing a reference to the input."
316 msgstr ""
317 "Din punct de vedere conceptual, B<tee>() copiază datele între cele două "
318 "conducte. În realitate, nu are loc nicio copiere reală de date: sub "
319 "acoperire, B<tee>() atribuie date la ieșire prin simpla preluare a unei "
320 "referințe la intrare."
321
322 #. type: SH
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 #, no-wrap
326 msgid "EXAMPLES"
327 msgstr "EXEMPLE"
328
329 #. type: Plain text
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 msgid ""
333 "The example below implements a basic B<tee>(1) program using the B<tee>() "
334 "system call. Here is an example of its use:"
335 msgstr ""
336 "Exemplul de mai jos implementează un program de bază B<tee>(1) utilizând "
337 "apelul de sistem B<tee>(). Iată un exemplu de utilizare a acestuia:"
338
339 #. type: Plain text
340 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
341 #: opensuse-tumbleweed
342 #, no-wrap
343 msgid ""
344 "$B< date | ./a.out out.log | cat>;\n"
345 "Tue Oct 28 10:06:00 CET 2014\n"
346 "$B< cat out.log>;\n"
347 "Tue Oct 28 10:06:00 CET 2014\n"
348 msgstr ""
349 "$B< date | ./a.out out.log | cat>;\n"
350 "Tue Oct 28 10:06:00 CET 2014\n"
351 "$B< cat out.log>;\n"
352 "Tue Oct 28 10:06:00 CET 2014\n"
353
354 #. type: SS
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 #, no-wrap
358 msgid "Program source"
359 msgstr "Sursa programului"
360
361 #. type: Plain text
362 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
363 #: opensuse-leap-16-1 opensuse-tumbleweed
364 #, no-wrap
365 msgid ""
366 "#define _GNU_SOURCE\n"
367 "#include E<lt>errno.hE<gt>\n"
368 "#include E<lt>fcntl.hE<gt>\n"
369 "#include E<lt>limits.hE<gt>\n"
370 "#include E<lt>stdio.hE<gt>\n"
371 "#include E<lt>stdlib.hE<gt>\n"
372 "#include E<lt>sys/types.hE<gt>\n"
373 "#include E<lt>unistd.hE<gt>\n"
374 "\\&\n"
375 "int\n"
376 "main(int argc, char *argv[])\n"
377 "{\n"
378 " int fd;\n"
379 " ssize_t size, ssize;\n"
380 "\\&\n"
381 " if (argc != 2) {\n"
382 " fprintf(stderr, \"Usage: %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n"
383 " exit(EXIT_FAILURE);\n"
384 " }\n"
385 "\\&\n"
386 " fd = open(argv[1], O_WRONLY | O_CREAT | O_TRUNC, 0644);\n"
387 " if (fd == -1) {\n"
388 " perror(\"open\");\n"
389 " exit(EXIT_FAILURE);\n"
390 " }\n"
391 "\\&\n"
392 " for (;;) {\n"
393 " /*\n"
394 " * tee stdin to stdout.\n"
395 " */\n"
396 " size = tee(STDIN_FILENO, STDOUT_FILENO,\n"
397 " INT_MAX, SPLICE_F_NONBLOCK);\n"
398 " if (size E<lt> 0) {\n"
399 " if (errno == EAGAIN)\n"
400 " continue;\n"
401 " perror(\"tee\");\n"
402 " exit(EXIT_FAILURE);\n"
403 " }\n"
404 " if (size == 0)\n"
405 " break;\n"
406 "\\&\n"
407 " /*\n"
408 " * Consume stdin by splicing it to a file.\n"
409 " */\n"
410 " while (size E<gt> 0) {\n"
411 " ssize = splice(STDIN_FILENO, NULL, fd, NULL,\n"
412 " size, SPLICE_F_MOVE);\n"
413 " if (ssize E<lt> 0) {\n"
414 " perror(\"splice\");\n"
415 " exit(EXIT_FAILURE);\n"
416 " }\n"
417 " size -= ssize;\n"
418 " }\n"
419 " }\n"
420 "\\&\n"
421 " close(fd);\n"
422 " exit(EXIT_SUCCESS);\n"
423 "}\n"
424 msgstr ""
425 "#define _GNU_SOURCE\n"
426 "#include E<lt>errno.hE<gt>\n"
427 "#include E<lt>fcntl.hE<gt>\n"
428 "#include E<lt>limits.hE<gt>\n"
429 "#include E<lt>stdio.hE<gt>\n"
430 "#include E<lt>stdlib.hE<gt>\n"
431 "#include E<lt>sys/types.hE<gt>\n"
432 "#include E<lt>unistd.hE<gt>\n"
433 "\\&\n"
434 "int\n"
435 "main(int argc, char *argv[])\n"
436 "{\n"
437 " int fd;\n"
438 " ssize_t size, ssize;\n"
439 "\\&\n"
440 " if (argc != 2) {\n"
441 " fprintf(stderr, \"Utilizare: %s E<lt>fișierE<gt>\\[rs]n\", argv[0]);\n"
442 " exit(EXIT_FAILURE);\n"
443 " }\n"
444 "\\&\n"
445 " fd = open(argv[1], O_WRONLY | O_CREAT | O_TRUNC, 0644);\n"
446 " if (fd == -1) {\n"
447 " perror(\"open\");\n"
448 " exit(EXIT_FAILURE);\n"
449 " }\n"
450 "\\&\n"
451 " for (;;) {\n"
452 " /*\n"
453 " * tee stdin to stdout.\n"
454 " */\n"
455 " size = tee(STDIN_FILENO, STDOUT_FILENO,\n"
456 " INT_MAX, SPLICE_F_NONBLOCK);\n"
457 " if (size E<lt> 0) {\n"
458 " if (errno == EAGAIN)\n"
459 " continue;\n"
460 " perror(\"tee\");\n"
461 " exit(EXIT_FAILURE);\n"
462 " }\n"
463 " if (size == 0)\n"
464 " break;\n"
465 "\\&\n"
466 " /*\n"
467 " * Consumă „stdin” prin introducerea acesteia într-un fișier.\n"
468 " */\n"
469 " while (size E<gt> 0) {\n"
470 " ssize = splice(STDIN_FILENO, NULL, fd, NULL,\n"
471 " size, SPLICE_F_MOVE);\n"
472 " if (ssize E<lt> 0) {\n"
473 " perror(\"splice\");\n"
474 " exit(EXIT_FAILURE);\n"
475 " }\n"
476 " size -= ssize;\n"
477 " }\n"
478 " }\n"
479 "\\&\n"
480 " close(fd);\n"
481 " exit(EXIT_SUCCESS);\n"
482 "}\n"
483
484 #. SRC END
485 #. type: SH
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 #, no-wrap
489 msgid "SEE ALSO"
490 msgstr "CONSULTAȚI ȘI"
491
492 #. type: Plain text
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 msgid "B<splice>(2), B<vmsplice>(2), B<pipe>(7)"
496 msgstr "B<splice>(2), B<vmsplice>(2), B<pipe>(7)"
497
498 #. type: TH
499 #: debian-trixie
500 #, no-wrap
501 msgid "2024-06-15"
502 msgstr "15 iunie 2024"
503
504 #. type: TH
505 #: debian-trixie
506 #, no-wrap
507 msgid "Linux man-pages 6.9.1"
508 msgstr "Pagini de manual de Linux 6.9.1"
509
510 #. type: Plain text
511 #: debian-trixie
512 msgid "Standard C library (I<libc>, I<-lc>)"
513 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
514
515 #. type: Plain text
516 #: debian-trixie
517 #, no-wrap
518 msgid "B<ssize_t tee(int >I<fd_in>B<, int >I<fd_out>B<, size_t >I<len>B<, unsigned int >I<flags>B<);>\n"
519 msgstr "B<ssize_t tee(int >I<fd_in>B<, int >I<fd_out>B<, size_t >I<len>B<, unsigned int >I<flags>B<);>\n"
520
521 #
522 #
523 #. Example programs http://brick.kernel.dk/snaps
524 #. add a "tee(in, out1, out2)" system call that duplicates the pages
525 #. (again, incrementing their reference count, not copying the data) from
526 #. one pipe to two other pipes.
527 #. type: Plain text
528 #: debian-trixie
529 msgid ""
530 "B<tee>() duplicates up to I<len> bytes of data from the pipe referred to by "
531 "the file descriptor I<fd_in> to the pipe referred to by the file descriptor "
532 "I<fd_out>. It does not consume the data that is duplicated from I<fd_in>; "
533 "therefore, that data can be copied by a subsequent B<splice>(2)."
534 msgstr ""
535 "B<tee>() duplică până la I<len> octeți de date din conducta la care se "
536 "referă descriptorul de fișier I<fd_in> în conducta la care se referă "
537 "descriptorul de fișier I<fd_out>. Nu consumă datele care sunt duplicate din "
538 "I<fd_in>; prin urmare, datele respective pot fi copiate de un B<splice>(2) "
539 "subsecvent."
540
541 #. type: Plain text
542 #: debian-trixie fedora-44 fedora-rawhide
543 #, no-wrap
544 msgid ""
545 "$ B<date | ./a.out out.log | cat>\n"
546 "Tue Oct 28 10:06:00 CET 2014\n"
547 "$ B<cat out.log>\n"
548 "Tue Oct 28 10:06:00 CET 2014\n"
549 msgstr ""
550 "$ B<date | ./a.out out.log | cat>\n"
551 "Tue Oct 28 10:06:00 CET 2014\n"
552 "$ B<cat out.log>\n"
553 "Tue Oct 28 10:06:00 CET 2014\n"
554
555 #. type: Plain text
556 #: debian-trixie
557 #, no-wrap
558 msgid ""
559 "#define _GNU_SOURCE\n"
560 "#include E<lt>errno.hE<gt>\n"
561 "#include E<lt>fcntl.hE<gt>\n"
562 "#include E<lt>limits.hE<gt>\n"
563 "#include E<lt>stdio.hE<gt>\n"
564 "#include E<lt>stdlib.hE<gt>\n"
565 "#include E<lt>sys/types.hE<gt>\n"
566 "#include E<lt>unistd.hE<gt>\n"
567 "\\&\n"
568 "int\n"
569 "main(int argc, char *argv[])\n"
570 "{\n"
571 " int fd;\n"
572 " ssize_t len, slen;\n"
573 "\\&\n"
574 " if (argc != 2) {\n"
575 " fprintf(stderr, \"Usage: %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n"
576 " exit(EXIT_FAILURE);\n"
577 " }\n"
578 "\\&\n"
579 " fd = open(argv[1], O_WRONLY | O_CREAT | O_TRUNC, 0644);\n"
580 " if (fd == -1) {\n"
581 " perror(\"open\");\n"
582 " exit(EXIT_FAILURE);\n"
583 " }\n"
584 "\\&\n"
585 " for (;;) {\n"
586 " /*\n"
587 " * tee stdin to stdout.\n"
588 " */\n"
589 " len = tee(STDIN_FILENO, STDOUT_FILENO,\n"
590 " INT_MAX, SPLICE_F_NONBLOCK);\n"
591 " if (len E<lt> 0) {\n"
592 " if (errno == EAGAIN)\n"
593 " continue;\n"
594 " perror(\"tee\");\n"
595 " exit(EXIT_FAILURE);\n"
596 " }\n"
597 " if (len == 0)\n"
598 " break;\n"
599 "\\&\n"
600 " /*\n"
601 " * Consume stdin by splicing it to a file.\n"
602 " */\n"
603 " while (len E<gt> 0) {\n"
604 " slen = splice(STDIN_FILENO, NULL, fd, NULL,\n"
605 " len, SPLICE_F_MOVE);\n"
606 " if (slen E<lt> 0) {\n"
607 " perror(\"splice\");\n"
608 " exit(EXIT_FAILURE);\n"
609 " }\n"
610 " len -= slen;\n"
611 " }\n"
612 " }\n"
613 "\\&\n"
614 " close(fd);\n"
615 " exit(EXIT_SUCCESS);\n"
616 "}\n"
617 msgstr ""
618 "#define _GNU_SOURCE\n"
619 "#include E<lt>errno.hE<gt>\n"
620 "#include E<lt>fcntl.hE<gt>\n"
621 "#include E<lt>limits.hE<gt>\n"
622 "#include E<lt>stdio.hE<gt>\n"
623 "#include E<lt>stdlib.hE<gt>\n"
624 "#include E<lt>sys/types.hE<gt>\n"
625 "#include E<lt>unistd.hE<gt>\n"
626 "\\&\n"
627 "int\n"
628 "main(int argc, char *argv[])\n"
629 "{\n"
630 " int fd;\n"
631 " ssize_t len, slen;\n"
632 "\\&\n"
633 " if (argc != 2) {\n"
634 " fprintf(stderr, \"Utilizare: %s E<lt>fișierE<gt>\\[rs]n\", argv[0]);\n"
635 " exit(EXIT_FAILURE);\n"
636 " }\n"
637 "\\&\n"
638 " fd = open(argv[1], O_WRONLY | O_CREAT | O_TRUNC, 0644);\n"
639 " if (fd == -1) {\n"
640 " perror(\"open\");\n"
641 " exit(EXIT_FAILURE);\n"
642 " }\n"
643 "\\&\n"
644 " for (;;) {\n"
645 " /*\n"
646 " * tee „stdin” la „stdout”.\n"
647 " */\n"
648 " len = tee(STDIN_FILENO, STDOUT_FILENO,\n"
649 " INT_MAX, SPLICE_F_NONBLOCK);\n"
650 " if (len E<lt> 0) {\n"
651 " if (errno == EAGAIN)\n"
652 " continue;\n"
653 " perror(\"tee\");\n"
654 " exit(EXIT_FAILURE);\n"
655 " }\n"
656 " if (len == 0)\n"
657 " break;\n"
658 "\\&\n"
659 " /*\n"
660 " * Consumă „stdin” prin introducerea acesteia într-un fișier.\n"
661 " */\n"
662 " while (len E<gt> 0) {\n"
663 " slen = splice(STDIN_FILENO, NULL, fd, NULL,\n"
664 " len, SPLICE_F_MOVE);\n"
665 " if (slen E<lt> 0) {\n"
666 " perror(\"splice\");\n"
667 " exit(EXIT_FAILURE);\n"
668 " }\n"
669 " len -= slen;\n"
670 " }\n"
671 " }\n"
672 "\\&\n"
673 " close(fd);\n"
674 " exit(EXIT_SUCCESS);\n"
675 "}\n"
676
677 #. type: TH
678 #: fedora-44 fedora-rawhide
679 #, no-wrap
680 msgid "2024-11-17"
681 msgstr "17 noiembrie 2024"
682
683 #. type: TH
684 #: fedora-44 fedora-rawhide
685 #, no-wrap
686 msgid "Linux man-pages 6.13"
687 msgstr "Pagini de manual de Linux 6.13"
688
689 #. type: TH
690 #: mageia-cauldron
691 #, no-wrap
692 msgid "Linux man-pages 6.17"
693 msgstr "Pagini de manual de Linux 6.17"
694
695 #. type: TH
696 #: opensuse-leap-16-1 opensuse-tumbleweed
697 #, no-wrap
698 msgid "Linux man-pages (unreleased)"
699 msgstr "Pagini de manual Linux (nepublicate)"