| 1 |
# Brazilian Portuguese translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# André Luiz Fassone <[email protected]>, 2001. |
| 5 |
# Ricardo C.O.Freitas <[email protected]>, 2001. |
| 6 |
msgid "" |
| 7 |
msgstr "" |
| 8 |
"Project-Id-Version: manpages-l10n\n" |
| 9 |
"POT-Creation-Date: 2026-06-05 06:23+0200\n" |
| 10 |
"PO-Revision-Date: 2001-05-31 16:23+0200\n" |
| 11 |
"Last-Translator: Ricardo C.O.Freitas <[email protected]>\n" |
| 12 |
"Language-Team: Brazilian Portuguese <debian-l10n-" |
| 13 |
"[email protected]>\n" |
| 14 |
"Language: pt_BR\n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
"Plural-Forms: nplurals=2; plural=(n > 1);\n" |
| 19 |
"X-Generator: Lokalize 20.04.1\n" |
| 20 |
|
| 21 |
#. type: TH |
| 22 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 23 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 24 |
#, no-wrap |
| 25 |
msgid "dup" |
| 26 |
msgstr "dup" |
| 27 |
|
| 28 |
#. type: TH |
| 29 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 30 |
#: opensuse-tumbleweed |
| 31 |
#, no-wrap |
| 32 |
msgid "2026-02-08" |
| 33 |
msgstr "8 fevereiro 2026" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-unstable |
| 37 |
#, fuzzy, no-wrap |
| 38 |
#| msgid "Linux man-pages 6.17" |
| 39 |
msgid "Linux man-pages 6.18" |
| 40 |
msgstr "Linux man-pages 6.17" |
| 41 |
|
| 42 |
#. type: SH |
| 43 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 44 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 45 |
#, no-wrap |
| 46 |
msgid "NAME" |
| 47 |
msgstr "NOME" |
| 48 |
|
| 49 |
#. type: Plain text |
| 50 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 51 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 52 |
msgid "dup, dup2, dup3 - duplicate a file descriptor" |
| 53 |
msgstr "dup, dup2, dup3 - duplica um descritor de arquivos" |
| 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 "Standard C library (I<libc>,\\ I<-lc>)" |
| 66 |
msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)" |
| 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 "SINOPSE" |
| 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 "B<#include E<lt>unistd.hE<gt>>\n" |
| 80 |
msgstr "B<#include E<lt>unistd.hE<gt>>\n" |
| 81 |
|
| 82 |
#. type: Plain text |
| 83 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 84 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 85 |
#, no-wrap |
| 86 |
msgid "" |
| 87 |
"B<int dup(int >I<oldfd>B<);>\n" |
| 88 |
"B<int dup2(int >I<oldfd>B<, int >I<newfd>B<);>\n" |
| 89 |
msgstr "" |
| 90 |
"B<int dup(int >I<oldfd>B<);>\n" |
| 91 |
"B<int dup2(int >I<oldfd>B<, int >I<newfd>B<);>\n" |
| 92 |
|
| 93 |
#. type: Plain text |
| 94 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 95 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 96 |
#, no-wrap |
| 97 |
msgid "" |
| 98 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 99 |
"B<#include E<lt>fcntl.hE<gt>> /* Definition of B<O_*> constants */\n" |
| 100 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 101 |
msgstr "" |
| 102 |
|
| 103 |
#. type: Plain text |
| 104 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 105 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 106 |
#, no-wrap |
| 107 |
msgid "B<int dup3(int >I<oldfd>B<, int >I<newfd>B<, int >I<flags>B<);>\n" |
| 108 |
msgstr "B<int dup3(int >I<oldfd>B<, int >I<newfd>B<, int >I<flags>B<);>\n" |
| 109 |
|
| 110 |
#. type: SH |
| 111 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 112 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 113 |
#, no-wrap |
| 114 |
msgid "DESCRIPTION" |
| 115 |
msgstr "DESCRIÇÃO" |
| 116 |
|
| 117 |
#. type: Plain text |
| 118 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 119 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 120 |
msgid "" |
| 121 |
"The B<dup>() system call allocates a new file descriptor that refers to the " |
| 122 |
"same open file description as the descriptor I<oldfd>. (For an explanation " |
| 123 |
"of open file descriptions, see B<open>(2).) The new file descriptor number " |
| 124 |
"is guaranteed to be the lowest-numbered file descriptor that was unused in " |
| 125 |
"the calling process." |
| 126 |
msgstr "" |
| 127 |
|
| 128 |
#. type: Plain text |
| 129 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 130 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 131 |
#, fuzzy |
| 132 |
#| msgid "" |
| 133 |
#| "After successful return of B<dup> or B<dup2>, the old and new descriptors " |
| 134 |
#| "may be used interchangeably. They share locks, file position pointers and " |
| 135 |
#| "flags; for example, if the file position is modified by using B<lseek> on " |
| 136 |
#| "one of the descriptors, the position is also changed for the other." |
| 137 |
msgid "" |
| 138 |
"After a successful return, the old and new file descriptors may be used " |
| 139 |
"interchangeably. Since the two file descriptors refer to the same open file " |
| 140 |
"description, they share file offset and file status flags; for example, if " |
| 141 |
"the file offset is modified by using B<lseek>(2) on one of the file " |
| 142 |
"descriptors, the offset is also changed for the other file descriptor." |
| 143 |
msgstr "" |
| 144 |
"Depois do retorno bem sucedido de B<dup> ou B<dup2>, o velho e o novo " |
| 145 |
"descritores podem ser usados sem distinção. Eles compartilham travamento, " |
| 146 |
"posicionamento do arquivo, ponteiros e sinalizadores; por exemplo, se a " |
| 147 |
"posição do arquivo é modificada usando-se B<lseek> em um dos descritores, a " |
| 148 |
"posição é, também, alterada para o outro." |
| 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 "" |
| 154 |
"The two file descriptors do not share file descriptor flags (the close-on-" |
| 155 |
"exec flag). The close-on-exec flag (B<FD_CLOEXEC>; see B<fcntl>(2)) for " |
| 156 |
"the duplicate descriptor is off." |
| 157 |
msgstr "" |
| 158 |
|
| 159 |
#. type: SS |
| 160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 161 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 162 |
#, no-wrap |
| 163 |
msgid "dup2()" |
| 164 |
msgstr "dup2()" |
| 165 |
|
| 166 |
#. type: Plain text |
| 167 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 168 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 169 |
msgid "" |
| 170 |
"The B<dup2>() system call performs the same task as B<dup>(), but instead " |
| 171 |
"of using the lowest-numbered unused file descriptor, it uses the file " |
| 172 |
"descriptor number specified in I<newfd>. In other words, the file " |
| 173 |
"descriptor I<newfd> is adjusted so that it now refers to the same open file " |
| 174 |
"description as I<oldfd>." |
| 175 |
msgstr "" |
| 176 |
|
| 177 |
#. type: Plain text |
| 178 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 179 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 180 |
msgid "" |
| 181 |
"If the file descriptor I<newfd> was previously open, it is closed before " |
| 182 |
"being reused; the close is performed silently (i.e., any errors during the " |
| 183 |
"close are not reported by B<dup2>())." |
| 184 |
msgstr "" |
| 185 |
|
| 186 |
#. type: Plain text |
| 187 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 188 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 189 |
msgid "" |
| 190 |
"The steps of closing and reusing the file descriptor I<newfd> are performed " |
| 191 |
"I<atomically>. This is important, because trying to implement equivalent " |
| 192 |
"functionality using B<close>(2) and B<dup>() would be subject to race " |
| 193 |
"conditions, whereby I<newfd> might be reused between the two steps. Such " |
| 194 |
"reuse could happen because the main program is interrupted by a signal " |
| 195 |
"handler that allocates a file descriptor, or because a parallel thread " |
| 196 |
"allocates a file descriptor." |
| 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 "Note the following points:" |
| 203 |
msgstr "" |
| 204 |
|
| 205 |
#. type: IP |
| 206 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 207 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 208 |
#, no-wrap |
| 209 |
msgid "\\[bu]" |
| 210 |
msgstr "\\[bu]" |
| 211 |
|
| 212 |
#. type: Plain text |
| 213 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 214 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 215 |
msgid "" |
| 216 |
"If I<oldfd> is not a valid file descriptor, then the call fails, and " |
| 217 |
"I<newfd> is not closed." |
| 218 |
msgstr "" |
| 219 |
|
| 220 |
#. type: Plain text |
| 221 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 222 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 223 |
msgid "" |
| 224 |
"If I<oldfd> is a valid file descriptor, and I<newfd> has the same value as " |
| 225 |
"I<oldfd>, then B<dup2>() does nothing, and returns I<newfd>." |
| 226 |
msgstr "" |
| 227 |
|
| 228 |
#. type: SS |
| 229 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 230 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 231 |
#, no-wrap |
| 232 |
msgid "dup3()" |
| 233 |
msgstr "dup3()" |
| 234 |
|
| 235 |
#. type: Plain text |
| 236 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 237 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 238 |
msgid "B<dup3>() is the same as B<dup2>(), except that:" |
| 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 |
"The caller can force the close-on-exec flag to be set for the new file " |
| 246 |
"descriptor by specifying B<O_CLOEXEC> in I<flags>. See the description of " |
| 247 |
"the same flag in B<open>(2) for reasons why this may be useful." |
| 248 |
msgstr "" |
| 249 |
|
| 250 |
#. Ulrich Drepper, LKML, 2008-10-09: |
| 251 |
#. We deliberately decided on this change. Otherwise, what is the |
| 252 |
#. result of dup3(fd, fd, O_CLOEXEC)? |
| 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 |
"If I<oldfd> equals I<newfd>, then B<dup3>() fails with the error B<EINVAL>." |
| 258 |
msgstr "" |
| 259 |
|
| 260 |
#. type: SH |
| 261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 262 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 263 |
#, no-wrap |
| 264 |
msgid "RETURN VALUE" |
| 265 |
msgstr "VALOR DE RETORNO" |
| 266 |
|
| 267 |
#. type: Plain text |
| 268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 269 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
#, fuzzy |
| 271 |
#| msgid "" |
| 272 |
#| "B<dup> and B<dup2> return the new descriptor, or -1 if an error occurred " |
| 273 |
#| "(in which case, I<errno> is set appropriately)." |
| 274 |
msgid "" |
| 275 |
"On success, these system calls return the new file descriptor. On error, -1 " |
| 276 |
"is returned, and I<errno> is set to indicate the error." |
| 277 |
msgstr "" |
| 278 |
"B<dup> e B<dup2> retornam o novo descritor, ou -1 se um erro ocorrer e, " |
| 279 |
"neste caso, I<errno> é selecionado adequadamente." |
| 280 |
|
| 281 |
#. type: SH |
| 282 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 283 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 284 |
#, no-wrap |
| 285 |
msgid "ERRORS" |
| 286 |
msgstr "ERROS" |
| 287 |
|
| 288 |
#. type: TP |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
#, no-wrap |
| 292 |
msgid "B<EBADF>" |
| 293 |
msgstr "B<EBADF>" |
| 294 |
|
| 295 |
#. type: Plain text |
| 296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 297 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 298 |
msgid "I<oldfd> isn't an open file descriptor." |
| 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 |
"I<newfd> is out of the allowed range for file descriptors (see the " |
| 306 |
"discussion of B<RLIMIT_NOFILE> in B<getrlimit>(2))." |
| 307 |
msgstr "" |
| 308 |
|
| 309 |
#. type: TP |
| 310 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 311 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 312 |
#, no-wrap |
| 313 |
msgid "B<EBUSY>" |
| 314 |
msgstr "B<EBUSY>" |
| 315 |
|
| 316 |
#. type: Plain text |
| 317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 318 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 319 |
msgid "" |
| 320 |
"(Linux only) This may be returned by B<dup2>() or B<dup3>() during a race " |
| 321 |
"condition with B<open>(2) and B<dup>()." |
| 322 |
msgstr "" |
| 323 |
|
| 324 |
#. type: TP |
| 325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 326 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 327 |
#, no-wrap |
| 328 |
msgid "B<EINTR>" |
| 329 |
msgstr "B<EINTR>" |
| 330 |
|
| 331 |
#. type: Plain text |
| 332 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 333 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 334 |
msgid "" |
| 335 |
"The B<dup2>() or B<dup3>() call was interrupted by a signal; see " |
| 336 |
"B<signal>(7)." |
| 337 |
msgstr "" |
| 338 |
|
| 339 |
#. type: TP |
| 340 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 341 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 342 |
#, no-wrap |
| 343 |
msgid "B<EINVAL>" |
| 344 |
msgstr "B<EINVAL>" |
| 345 |
|
| 346 |
#. type: Plain text |
| 347 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 348 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 349 |
msgid "(B<dup3>()) I<flags> contain an invalid value." |
| 350 |
msgstr "" |
| 351 |
|
| 352 |
#. type: Plain text |
| 353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 354 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 355 |
msgid "(B<dup3>()) I<oldfd> was equal to I<newfd>." |
| 356 |
msgstr "" |
| 357 |
|
| 358 |
#. type: TP |
| 359 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 360 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 361 |
#, no-wrap |
| 362 |
msgid "B<EMFILE>" |
| 363 |
msgstr "B<EMFILE>" |
| 364 |
|
| 365 |
#. type: Plain text |
| 366 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 367 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 368 |
msgid "" |
| 369 |
"The per-process limit on the number of open file descriptors has been " |
| 370 |
"reached (see the discussion of B<RLIMIT_NOFILE> in B<getrlimit>(2))." |
| 371 |
msgstr "" |
| 372 |
|
| 373 |
#. type: TP |
| 374 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 375 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 376 |
#, no-wrap |
| 377 |
msgid "B<ENOMEM>" |
| 378 |
msgstr "B<ENOMEM>" |
| 379 |
|
| 380 |
#. type: Plain text |
| 381 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 382 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 383 |
msgid "Insufficient kernel memory was available." |
| 384 |
msgstr "A memória do kernel disponível foi insuficiente." |
| 385 |
|
| 386 |
#. type: SH |
| 387 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 388 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 389 |
#, no-wrap |
| 390 |
msgid "STANDARDS" |
| 391 |
msgstr "PADRÕES" |
| 392 |
|
| 393 |
#. type: Plain text |
| 394 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 395 |
#: opensuse-tumbleweed |
| 396 |
msgid "POSIX.1-2024." |
| 397 |
msgstr "POSIX.1-2024." |
| 398 |
|
| 399 |
#. type: SH |
| 400 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 401 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 402 |
#, no-wrap |
| 403 |
msgid "HISTORY" |
| 404 |
msgstr "HISTÓRICO" |
| 405 |
|
| 406 |
#. type: TP |
| 407 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 408 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 409 |
#, no-wrap |
| 410 |
msgid "B<dup>()" |
| 411 |
msgstr "" |
| 412 |
|
| 413 |
#. type: TQ |
| 414 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 415 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 416 |
#, fuzzy, no-wrap |
| 417 |
#| msgid "dup2()" |
| 418 |
msgid "B<dup2>()" |
| 419 |
msgstr "dup2()" |
| 420 |
|
| 421 |
#. SVr4 documents additional |
| 422 |
#. EINTR and ENOLINK error conditions. POSIX.1 adds EINTR. |
| 423 |
#. The EBUSY return is Linux-specific. |
| 424 |
#. type: Plain text |
| 425 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 426 |
#: opensuse-tumbleweed |
| 427 |
msgid "4.3BSD, SVr4, POSIX.1-1988." |
| 428 |
msgstr "4.3BSD, SVr4, POSIX.1-1988." |
| 429 |
|
| 430 |
#. type: TP |
| 431 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 432 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 433 |
#, fuzzy, no-wrap |
| 434 |
#| msgid "dup3()" |
| 435 |
msgid "B<dup3>()" |
| 436 |
msgstr "dup3()" |
| 437 |
|
| 438 |
#. type: Plain text |
| 439 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 440 |
#: opensuse-tumbleweed |
| 441 |
#, fuzzy |
| 442 |
#| msgid "C99, POSIX.1-2001. glibc 2.1." |
| 443 |
msgid "POSIX.1-2024. Linux 2.6.27, glibc 2.9." |
| 444 |
msgstr "C99, POSIX.1-2001. glibc 2.1." |
| 445 |
|
| 446 |
#. type: SH |
| 447 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 448 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 449 |
#, no-wrap |
| 450 |
msgid "NOTES" |
| 451 |
msgstr "NOTAS" |
| 452 |
|
| 453 |
#. type: Plain text |
| 454 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 455 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 456 |
msgid "" |
| 457 |
"The error returned by B<dup2>() is different from that returned by " |
| 458 |
"B<fcntl(>..., B<F_DUPFD>, ...B<)> when I<newfd> is out of range. On some " |
| 459 |
"systems, B<dup2>() also sometimes returns B<EINVAL> like B<F_DUPFD>." |
| 460 |
msgstr "" |
| 461 |
"O erro devolvido por B<dup2>() é diferente que aquele retornado por " |
| 462 |
"B<fcntl(>..., B<F_DUPFD>, ...B<)> quando I<newfd> está fora do intervalo. Em " |
| 463 |
"muitos sistemas B<dup2>() também devolve às vezes B<EINVAL> como B<F_DUPFD>." |
| 464 |
|
| 465 |
#. type: Plain text |
| 466 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 467 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 468 |
msgid "" |
| 469 |
"If I<newfd> was open, any errors that would have been reported at " |
| 470 |
"B<close>(2) time are lost. If this is of concern, then\\[em]unless the " |
| 471 |
"program is single-threaded and does not allocate file descriptors in signal " |
| 472 |
"handlers\\[em]the correct approach is I<not> to close I<newfd> before " |
| 473 |
"calling B<dup2>(), because of the race condition described above. Instead, " |
| 474 |
"code something like the following could be used:" |
| 475 |
msgstr "" |
| 476 |
|
| 477 |
#. type: Plain text |
| 478 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 479 |
#: opensuse-tumbleweed |
| 480 |
#, no-wrap |
| 481 |
msgid "" |
| 482 |
"/* Obtain a duplicate of \\[aq]newfd\\[aq] that can subsequently\n" |
| 483 |
" be used to check for close() errors; an EBADF error\n" |
| 484 |
" means that \\[aq]newfd\\[aq] was not open. */\n" |
| 485 |
"\\&\n" |
| 486 |
"tmpfd = dup(newfd);\n" |
| 487 |
"if (tmpfd == -1 && errno != EBADF) {\n" |
| 488 |
" /* Handle unexpected dup() error. */\n" |
| 489 |
"}\n" |
| 490 |
"\\&\n" |
| 491 |
"/* Atomically duplicate \\[aq]oldfd\\[aq] on \\[aq]newfd\\[aq]. */\n" |
| 492 |
"\\&\n" |
| 493 |
"if (dup2(oldfd, newfd) == -1) {\n" |
| 494 |
" /* Handle dup2() error. */\n" |
| 495 |
"}\n" |
| 496 |
"\\&\n" |
| 497 |
"/* Now check for close() errors on the file originally\n" |
| 498 |
" referred to by \\[aq]newfd\\[aq]. */\n" |
| 499 |
"\\&\n" |
| 500 |
"if (tmpfd != -1) {\n" |
| 501 |
" if (close(tmpfd) == -1) {\n" |
| 502 |
" /* Handle errors from close. */\n" |
| 503 |
" }\n" |
| 504 |
"}\n" |
| 505 |
msgstr "" |
| 506 |
|
| 507 |
#. type: SH |
| 508 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 509 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 510 |
#, no-wrap |
| 511 |
msgid "SEE ALSO" |
| 512 |
msgstr "VEJA TAMBÉM" |
| 513 |
|
| 514 |
#. type: Plain text |
| 515 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 516 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 517 |
msgid "B<close>(2), B<fcntl>(2), B<open>(2), B<pidfd_getfd>(2)" |
| 518 |
msgstr "B<close>(2), B<fcntl>(2), B<open>(2), B<pidfd_getfd>(2)" |
| 519 |
|
| 520 |
#. type: TH |
| 521 |
#: debian-trixie |
| 522 |
#, no-wrap |
| 523 |
msgid "2024-05-02" |
| 524 |
msgstr "2 maio 2024" |
| 525 |
|
| 526 |
#. type: TH |
| 527 |
#: debian-trixie |
| 528 |
#, no-wrap |
| 529 |
msgid "Linux man-pages 6.9.1" |
| 530 |
msgstr "Linux man-pages 6.9.1" |
| 531 |
|
| 532 |
#. type: Plain text |
| 533 |
#: debian-trixie |
| 534 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 535 |
msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)" |
| 536 |
|
| 537 |
#. type: Plain text |
| 538 |
#: debian-trixie fedora-44 fedora-rawhide |
| 539 |
msgid "POSIX.1-2008." |
| 540 |
msgstr "POSIX.1-2008." |
| 541 |
|
| 542 |
#. type: Plain text |
| 543 |
#: debian-trixie fedora-44 fedora-rawhide |
| 544 |
msgid "Linux." |
| 545 |
msgstr "Linux." |
| 546 |
|
| 547 |
#. SVr4 documents additional |
| 548 |
#. EINTR and ENOLINK error conditions. POSIX.1 adds EINTR. |
| 549 |
#. The EBUSY return is Linux-specific. |
| 550 |
#. type: Plain text |
| 551 |
#: debian-trixie fedora-44 fedora-rawhide |
| 552 |
msgid "POSIX.1-2001, SVr4, 4.3BSD." |
| 553 |
msgstr "POSIX.1-2001, SVr4, 4.3BSD." |
| 554 |
|
| 555 |
#. type: Plain text |
| 556 |
#: debian-trixie fedora-44 fedora-rawhide |
| 557 |
msgid "Linux 2.6.27, glibc 2.9." |
| 558 |
msgstr "Linux 2.6.27, glibc 2.9." |
| 559 |
|
| 560 |
#. type: Plain text |
| 561 |
#: debian-trixie fedora-44 fedora-rawhide |
| 562 |
#, no-wrap |
| 563 |
msgid "" |
| 564 |
"/* Obtain a duplicate of \\[aq]newfd\\[aq] that can subsequently\n" |
| 565 |
" be used to check for close() errors; an EBADF error\n" |
| 566 |
" means that \\[aq]newfd\\[aq] was not open. */\n" |
| 567 |
"\\&\n" |
| 568 |
"tmpfd = dup(newfd);\n" |
| 569 |
"if (tmpfd == -1 && errno != EBADF) {\n" |
| 570 |
" /* Handle unexpected dup() error. */\n" |
| 571 |
"}\n" |
| 572 |
"\\&\n" |
| 573 |
"/* Atomically duplicate \\[aq]oldfd\\[aq] on \\[aq]newfd\\[aq]. */\n" |
| 574 |
"\\&\n" |
| 575 |
"if (dup2(oldfd, newfd) == -1) {\n" |
| 576 |
" /* Handle dup2() error. */\n" |
| 577 |
"}\n" |
| 578 |
"\\&\n" |
| 579 |
"/* Now check for close() errors on the file originally\n" |
| 580 |
" referred to by \\[aq]newfd\\[aq]. */\n" |
| 581 |
"\\&\n" |
| 582 |
"if (tmpfd != -1) {\n" |
| 583 |
" if (close(tmpfd) == -1) {\n" |
| 584 |
" /* Handle errors from close. */\n" |
| 585 |
" }\n" |
| 586 |
"}\n" |
| 587 |
msgstr "" |
| 588 |
|
| 589 |
#. type: TH |
| 590 |
#: fedora-44 fedora-rawhide |
| 591 |
#, no-wrap |
| 592 |
msgid "2024-11-01" |
| 593 |
msgstr "1 novembro 2024" |
| 594 |
|
| 595 |
#. type: TH |
| 596 |
#: fedora-44 fedora-rawhide |
| 597 |
#, no-wrap |
| 598 |
msgid "Linux man-pages 6.13" |
| 599 |
msgstr "Linux man-pages 6.13" |
| 600 |
|
| 601 |
#. type: TH |
| 602 |
#: mageia-cauldron |
| 603 |
#, no-wrap |
| 604 |
msgid "Linux man-pages 6.17" |
| 605 |
msgstr "Linux man-pages 6.17" |
| 606 |
|
| 607 |
#. type: TH |
| 608 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 609 |
#, no-wrap |
| 610 |
msgid "Linux man-pages (unreleased)" |
| 611 |
msgstr "Linux man-pages (não lançado)" |