Debian Codegraph @

po/pt_BR/man2/mmap.2.po

raw
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 # Walter Rodrigo de Sá Cruz <[email protected]>, 2001.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:31+0200\n"
10 "PO-Revision-Date: 2001-06-02 19:20-0300\n"
11 "Last-Translator: André Luiz Fassone <[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: Virtaal 1.0.0-beta1\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 "mmap"
26 msgstr "mmap"
27
28 #. type: TH
29 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-03-19"
32 msgstr "19 março 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, fuzzy, no-wrap
37 #| msgid "Linux man-pages 6.17"
38 msgid "Linux man-pages 6.18"
39 msgstr "Linux man-pages 6.17"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "NOME"
47
48 #. type: Plain text
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 msgid "mmap, munmap - map or unmap files or devices into memory"
52 msgstr "mmap, munmap - mapeia ou desmapeia arquivos ou dispositivos na memória"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr "BIBLIOTECA"
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr "SINOPSE"
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "B<#include E<lt>sys/mman.hE<gt>>\n"
79 msgstr "B<#include E<lt>sys/mman.hE<gt>>\n"
80
81 #. type: Plain text
82 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
83 #: opensuse-tumbleweed
84 #, fuzzy, no-wrap
85 #| msgid ""
86 #| "B<void *mmap(void *>I<addr>B<, size_t >I<length>B<, int >I<prot>B<, int >I<flags>B<,>\n"
87 #| "B< int >I<fd>B<, off_t >I<offset>B<);>\n"
88 #| "B<int munmap(void *>I<addr>B<, size_t >I<length>B<);>\n"
89 msgid ""
90 "B<void *mmap(>size_t length;\n"
91 "B< void >I<addr>B<[>I<length>B<], size_t >I<length>B<, int >I<prot>B<, int >I<flags>B<,>\n"
92 "B< int >I<fd>B<, off_t >I<offset>B<);>\n"
93 "B<int munmap(>size_t length;\n"
94 "B< void >I<addr>B<[>I<length>B<], size_t >I<length>B<);>\n"
95 msgstr ""
96 "B<void *mmap(void *>I<addr>B<, size_t >I<length>B<, int >I<prot>B<, int >I<flags>B<,>\n"
97 "B< int >I<fd>B<, off_t >I<offset>B<);>\n"
98 "B<int munmap(void *>I<addr>B<, size_t >I<length>B<);>\n"
99
100 #. type: Plain text
101 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
102 #: opensuse-leap-16-1 opensuse-tumbleweed
103 msgid "See VERSIONS for information on feature test macro requirements."
104 msgstr ""
105
106 #. type: SH
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, no-wrap
110 msgid "DESCRIPTION"
111 msgstr "DESCRIÇÃO"
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 "B<mmap>() creates a new mapping in the virtual address space of the calling "
118 "process. The starting address for the new mapping is specified in I<addr>. "
119 "The I<length> argument specifies the length of the mapping (which must be "
120 "greater than 0)."
121 msgstr ""
122
123 #. Before Linux 2.6.24, the address was rounded up to the next page
124 #. boundary; since Linux 2.6.24, it is rounded down!
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 msgid ""
129 "If I<addr> is NULL, then the kernel chooses the (page-aligned) address at "
130 "which to create the mapping; this is the most portable method of creating a "
131 "new mapping. If I<addr> is not NULL, then the kernel takes it as a hint "
132 "about where to place the mapping; on Linux, the kernel will pick a nearby "
133 "page boundary (but always above or equal to the value specified by I</proc/"
134 "sys/vm/mmap_min_addr>) and attempt to create the mapping there. If another "
135 "mapping already exists there, the kernel picks a new address that may or may "
136 "not depend on the hint. The address of the new mapping is returned as the "
137 "result of the call."
138 msgstr ""
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid ""
144 "The contents of a file mapping (as opposed to an anonymous mapping; see "
145 "B<MAP_ANONYMOUS> below), are initialized using I<length> bytes starting at "
146 "offset I<offset> in the file (or other object) referred to by the file "
147 "descriptor I<fd>. I<offset> must be a multiple of the page size as returned "
148 "by I<sysconf(_SC_PAGE_SIZE)>."
149 msgstr ""
150
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 msgid ""
155 "After the B<mmap>() call has returned, the file descriptor, I<fd>, can be "
156 "closed immediately without invalidating the mapping."
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 "The I<prot> argument describes the desired memory protection of the mapping "
164 "(and must not conflict with the open mode of the file). It is either "
165 "B<PROT_NONE> or the bitwise OR of one or more of the following flags:"
166 msgstr ""
167
168 #. type: TP
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 #, no-wrap
172 msgid "B<PROT_EXEC>"
173 msgstr "B<PROT_EXEC>"
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 "Pages may be executed."
179 msgstr "As páginas podem ser executadas."
180
181 #. type: TP
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid "B<PROT_READ>"
186 msgstr "B<PROT_READ>"
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 msgid "Pages may be read."
192 msgstr "As páginas podem ser lidas."
193
194 #. type: TP
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 #, no-wrap
198 msgid "B<PROT_WRITE>"
199 msgstr "B<PROT_WRITE>"
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 "Pages may be written."
205 msgstr "As páginas podem ser escritas."
206
207 #. type: TP
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, no-wrap
211 msgid "B<PROT_NONE>"
212 msgstr "B<PROT_NONE>"
213
214 #. type: Plain text
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 msgid "Pages may not be accessed."
218 msgstr "As páginas podem ser acessadas."
219
220 #. type: SS
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 #, no-wrap
224 msgid "The flags argument"
225 msgstr ""
226
227 #. type: Plain text
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 msgid ""
231 "The I<flags> argument determines whether updates to the mapping are visible "
232 "to other processes mapping the same region, and whether updates are carried "
233 "through to the underlying file. This behavior is determined by including "
234 "exactly one of the following values in I<flags>:"
235 msgstr ""
236
237 #. type: TP
238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
240 #, no-wrap
241 msgid "B<MAP_SHARED>"
242 msgstr "B<MAP_SHARED>"
243
244 #. type: Plain text
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 msgid ""
248 "Share this mapping. Updates to the mapping are visible to other processes "
249 "mapping the same region, and (in the case of file-backed mappings) are "
250 "carried through to the underlying file. (To precisely control when updates "
251 "are carried through to the underlying file requires the use of B<msync>(2).)"
252 msgstr ""
253
254 #. type: TP
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid "B<MAP_SHARED_VALIDATE> (since Linux 4.15)"
259 msgstr ""
260
261 #. type: Plain text
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 msgid ""
265 "This flag provides the same behavior as B<MAP_SHARED> except that "
266 "B<MAP_SHARED> mappings ignore unknown flags in I<flags>. By contrast, when "
267 "creating a mapping using B<MAP_SHARED_VALIDATE>, the kernel verifies all "
268 "passed flags are known and fails the mapping with the error B<EOPNOTSUPP> "
269 "for unknown flags. This mapping type is also required to be able to use "
270 "some mapping flags (e.g., B<MAP_SYNC>)."
271 msgstr ""
272
273 #. type: TP
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 #, no-wrap
277 msgid "B<MAP_PRIVATE>"
278 msgstr "B<MAP_PRIVATE>"
279
280 #. type: Plain text
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 msgid ""
284 "Create a private copy-on-write mapping. Updates to the mapping are not "
285 "visible to other processes mapping the same file, and are not carried "
286 "through to the underlying file. It is unspecified whether changes made to "
287 "the file after the B<mmap>() call are visible in the mapped region."
288 msgstr ""
289
290 #. type: Plain text
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 msgid ""
294 "Both B<MAP_SHARED> and B<MAP_PRIVATE> are described in POSIX.1-2001 and "
295 "POSIX.1-2008. B<MAP_SHARED_VALIDATE> is a Linux extension."
296 msgstr ""
297
298 #. type: Plain text
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 msgid ""
302 "In addition, zero or more of the following values can be ORed in I<flags>:"
303 msgstr ""
304
305 #. type: TP
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 #, no-wrap
309 msgid "B<MAP_32BIT> (since Linux 2.4.20, 2.6)"
310 msgstr ""
311
312 #. See http://lwn.net/Articles/294642 "Tangled up in threads", 19 Aug 08
313 #. type: Plain text
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 msgid ""
317 "Put the mapping into the first 2 Gigabytes of the process address space. "
318 "This flag is supported only on x86-64, for 64-bit programs. It was added to "
319 "allow thread stacks to be allocated somewhere in the first 2\\ GB of memory, "
320 "so as to improve context-switch performance on some early 64-bit "
321 "processors. Modern x86-64 processors no longer have this performance "
322 "problem, so use of this flag is not required on those systems. The "
323 "B<MAP_32BIT> flag is ignored when B<MAP_FIXED> is set."
324 msgstr ""
325
326 #. type: TP
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 #, no-wrap
330 msgid "B<MAP_ANON>"
331 msgstr "B<MAP_ANON>"
332
333 #. type: Plain text
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 msgid ""
337 "Synonym for B<MAP_ANONYMOUS>; provided for compatibility with other "
338 "implementations."
339 msgstr ""
340
341 #. type: TP
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 #, no-wrap
345 msgid "B<MAP_ANONYMOUS>"
346 msgstr "B<MAP_ANONYMOUS>"
347
348 #. See the pgoff overflow check in do_mmap().
349 #. See the offset check in sys_mmap in arch/x86/kernel/sys_x86_64.c.
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 msgid ""
354 "The mapping is not backed by any file; its contents are initialized to "
355 "zero. The I<fd> argument is ignored; however, some implementations require "
356 "I<fd> to be -1 if B<MAP_ANONYMOUS> (or B<MAP_ANON>) is specified, and "
357 "portable applications should ensure this. The I<offset> argument should be "
358 "zero. Support for B<MAP_ANONYMOUS> in conjunction with B<MAP_SHARED> was "
359 "added in Linux 2.4."
360 msgstr ""
361
362 #. type: TP
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 #, no-wrap
366 msgid "B<MAP_DENYWRITE>"
367 msgstr "B<MAP_DENYWRITE>"
368
369 #. Introduced in 1.1.36, removed in 1.3.24.
370 #. type: Plain text
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 msgid ""
374 "This flag is ignored. (Long ago\\[em]Linux 2.0 and earlier\\[em]it signaled "
375 "that attempts to write to the underlying file should fail with B<ETXTBSY>. "
376 "But this was a source of denial-of-service attacks.)"
377 msgstr ""
378
379 #. type: TP
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 #, no-wrap
383 msgid "B<MAP_EXECUTABLE>"
384 msgstr "B<MAP_EXECUTABLE>"
385
386 #. #-#-#-#-# archlinux: mmap.2.pot (PACKAGE VERSION) #-#-#-#-#
387 #. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link.
388 #. (Long ago, it signaled that the underlying file is an executable.
389 #. However, that information was not really used anywhere.)
390 #. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of
391 #. MAP_DENYWRITE?
392 #. type: Plain text
393 #. #-#-#-#-# debian-trixie: mmap.2.pot (PACKAGE VERSION) #-#-#-#-#
394 #. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link.
395 #. (Long ago, it signaled that the underlying file is an executable.
396 #. However, that information was not really used anywhere.)
397 #. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of
398 #. MAP_DENYWRITE?
399 #. type: Plain text
400 #. #-#-#-#-# debian-unstable: mmap.2.pot (PACKAGE VERSION) #-#-#-#-#
401 #. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link.
402 #. (Long ago, it signaled that the underlying file is an executable.
403 #. However, that information was not really used anywhere.)
404 #. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of
405 #. MAP_DENYWRITE?
406 #. type: Plain text
407 #. #-#-#-#-# fedora-44: mmap.2.pot (PACKAGE VERSION) #-#-#-#-#
408 #. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link.
409 #. (Long ago, it signaled that the underlying file is an executable.
410 #. However, that information was not really used anywhere.)
411 #. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of
412 #. MAP_DENYWRITE?
413 #. type: Plain text
414 #. #-#-#-#-# fedora-rawhide: mmap.2.pot (PACKAGE VERSION) #-#-#-#-#
415 #. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link.
416 #. (Long ago, it signaled that the underlying file is an executable.
417 #. However, that information was not really used anywhere.)
418 #. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of
419 #. MAP_DENYWRITE?
420 #. type: Plain text
421 #. #-#-#-#-# mageia-cauldron: mmap.2.pot (PACKAGE VERSION) #-#-#-#-#
422 #. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link.
423 #. (Long ago, it signaled that the underlying file is an executable.
424 #. However, that information was not really used anywhere.)
425 #. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of
426 #. MAP_DENYWRITE?
427 #. type: Plain text
428 #. #-#-#-#-# opensuse-leap-16-1: mmap.2.pot (PACKAGE VERSION) #-#-#-#-#
429 #. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link.
430 #. (Long ago, it signaled that the underlying file is an executable.
431 #. However, that information was not really used anywhere.)
432 #. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of
433 #. MAP_DENYWRITE?
434 #. type: Plain text
435 #. #-#-#-#-# opensuse-tumbleweed: mmap.2.pot (PACKAGE VERSION) #-#-#-#-#
436 #. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link.
437 #. (Long ago, it signaled that the underlying file is an executable.
438 #. However, that information was not really used anywhere.)
439 #. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of
440 #. MAP_DENYWRITE?
441 #. type: Plain text
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 msgid "This flag is ignored."
445 msgstr ""
446
447 #. type: TP
448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
450 #, no-wrap
451 msgid "B<MAP_FILE>"
452 msgstr "B<MAP_FILE>"
453
454 #. On some systems, this was required as the opposite of
455 #. MAP_ANONYMOUS -- mtk, 1 May 2007
456 #. type: Plain text
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 msgid "Compatibility flag. Ignored."
460 msgstr ""
461
462 #. type: TP
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 #, no-wrap
466 msgid "B<MAP_FIXED>"
467 msgstr "B<MAP_FIXED>"
468
469 #. type: Plain text
470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
472 msgid ""
473 "Don't interpret I<addr> as a hint: place the mapping at exactly that "
474 "address. I<addr> must be suitably aligned: for most architectures a "
475 "multiple of the page size is sufficient; however, some architectures may "
476 "impose additional restrictions. If the memory region specified by I<addr> "
477 "and I<length> overlaps pages of any existing mapping(s), then the overlapped "
478 "part of the existing mapping(s) will be discarded. If the specified address "
479 "cannot be used, B<mmap>() will fail."
480 msgstr ""
481
482 #. type: Plain text
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 msgid ""
486 "Software that aspires to be portable should use the B<MAP_FIXED> flag with "
487 "care, keeping in mind that the exact layout of a process's memory mappings "
488 "is allowed to change significantly between Linux versions, C library "
489 "versions, and operating system releases. I<Carefully read the discussion of "
490 "this flag in NOTES!>"
491 msgstr ""
492
493 #. type: TP
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 #, no-wrap
497 msgid "B<MAP_FIXED_NOREPLACE> (since Linux 4.17)"
498 msgstr ""
499
500 #. commit a4ff8e8620d3f4f50ac4b41e8067b7d395056843
501 #. type: Plain text
502 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
503 #: opensuse-tumbleweed
504 msgid ""
505 "This flag provides behavior that is similar to B<MAP_FIXED> with respect to "
506 "the I<addr> enforcement, but differs in that B<MAP_FIXED_NOREPLACE> never "
507 "clobbers a preexisting mapped range. If the requested range would collide "
508 "with an existing mapping, then this call fails with the error B<EEXIST.> "
509 "This flag can therefore be used as a way to atomically (with respect to "
510 "other threads) attempt to map an address range: one thread will succeed; "
511 "all others will report failure."
512 msgstr ""
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 ""
518 "Note that older kernels which do not recognize the B<MAP_FIXED_NOREPLACE> "
519 "flag will typically (upon detecting a collision with a preexisting mapping) "
520 "fall back to a \\[lq]non-B<MAP_FIXED>\\[rq] type of behavior: they will "
521 "return an address that is different from the requested address. Therefore, "
522 "backward-compatible software should check the returned address against the "
523 "requested address."
524 msgstr ""
525
526 #. type: TP
527 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
528 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
529 #, no-wrap
530 msgid "B<MAP_GROWSDOWN>"
531 msgstr "B<MAP_GROWSDOWN>"
532
533 #. type: Plain text
534 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
535 msgid ""
536 "This flag is used for stacks. It indicates to the kernel virtual memory "
537 "system that the mapping should extend downward in memory. Touching an "
538 "address in the \"guard\" page below the mapping will cause the mapping to "
539 "grow by a page. This growth can be repeated until the mapping grows to "
540 "within a page of the high end of the next lower mapping, at which point "
541 "touching the \"guard\" page will result in a B<SIGSEGV> signal."
542 msgstr ""
543
544 #. type: TP
545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
547 #, no-wrap
548 msgid "B<MAP_HUGETLB> (since Linux 2.6.32)"
549 msgstr ""
550
551 #. type: Plain text
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 msgid ""
555 "Allocate the mapping using \"huge\" pages. See the Linux kernel source file "
556 "I<Documentation/admin-guide/mm/hugetlbpage.rst> for further information, as "
557 "well as NOTES, below."
558 msgstr ""
559
560 #. type: TP
561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
563 #, fuzzy, no-wrap
564 #| msgid "B<MAP_SHARED>"
565 msgid "B<MAP_HUGE_2MB>"
566 msgstr "B<MAP_SHARED>"
567
568 #. type: TQ
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<MAP_HUGE_1GB> (since Linux 3.8)"
573 msgstr ""
574
575 #. See https://lwn.net/Articles/533499/
576 #. type: Plain text
577 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
578 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
579 msgid ""
580 "Used in conjunction with B<MAP_HUGETLB> to select alternative hugetlb page "
581 "sizes (respectively, 2\\ MB and 1\\ GB) on systems that support multiple "
582 "hugetlb page sizes."
583 msgstr ""
584
585 #. type: Plain text
586 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
587 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
588 msgid ""
589 "More generally, the desired huge page size can be configured by encoding the "
590 "base-2 logarithm of the desired page size in the six bits at the offset "
591 "B<MAP_HUGE_SHIFT>. (A value of zero in this bit field provides the default "
592 "huge page size; the default huge page size can be discovered via the "
593 "I<Hugepagesize> field exposed by I</proc/meminfo>.) Thus, the above two "
594 "constants are defined as:"
595 msgstr ""
596
597 #. type: Plain text
598 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
599 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
600 #, no-wrap
601 msgid ""
602 "#define MAP_HUGE_2MB (21 E<lt>E<lt> MAP_HUGE_SHIFT)\n"
603 "#define MAP_HUGE_1GB (30 E<lt>E<lt> MAP_HUGE_SHIFT)\n"
604 msgstr ""
605 "#define MAP_HUGE_2MB (21 E<lt>E<lt> MAP_HUGE_SHIFT)\n"
606 "#define MAP_HUGE_1GB (30 E<lt>E<lt> MAP_HUGE_SHIFT)\n"
607
608 #. type: Plain text
609 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
610 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
611 msgid ""
612 "The range of huge page sizes that are supported by the system can be "
613 "discovered by listing the subdirectories in I</sys/kernel/mm/hugepages>."
614 msgstr ""
615
616 #. type: TP
617 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
618 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
619 #, no-wrap
620 msgid "B<MAP_LOCKED> (since Linux 2.5.37)"
621 msgstr ""
622
623 #. If set, the mapped pages will not be swapped out.
624 #. type: Plain text
625 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
626 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
627 msgid ""
628 "Mark the mapped region to be locked in the same way as B<mlock>(2). This "
629 "implementation will try to populate (prefault) the whole range but the "
630 "B<mmap>() call doesn't fail with B<ENOMEM> if this fails. Therefore major "
631 "faults might happen later on. So the semantic is not as strong as "
632 "B<mlock>(2). One should use B<mmap>() plus B<mlock>(2) when major faults "
633 "are not acceptable after the initialization of the mapping. The "
634 "B<MAP_LOCKED> flag is ignored in older kernels."
635 msgstr ""
636
637 #. type: TP
638 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
639 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
640 #, no-wrap
641 msgid "B<MAP_NONBLOCK> (since Linux 2.5.46)"
642 msgstr ""
643
644 #. commit 54cb8821de07f2ffcd28c380ce9b93d5784b40d7
645 #. type: Plain text
646 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
647 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
648 msgid ""
649 "This flag is meaningful only in conjunction with B<MAP_POPULATE>. Don't "
650 "perform read-ahead: create page tables entries only for pages that are "
651 "already present in RAM. Since Linux 2.6.23, this flag causes "
652 "B<MAP_POPULATE> to do nothing. One day, the combination of B<MAP_POPULATE> "
653 "and B<MAP_NONBLOCK> may be reimplemented."
654 msgstr ""
655
656 #. type: TP
657 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
658 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
659 #, no-wrap
660 msgid "B<MAP_NORESERVE>"
661 msgstr "B<MAP_NORESERVE>"
662
663 #. type: Plain text
664 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
665 #: opensuse-tumbleweed
666 msgid ""
667 "Do not reserve swap space for this mapping. When swap space is reserved, "
668 "one has the guarantee that it is possible to modify the mapping. When swap "
669 "space is not reserved one might get B<SIGSEGV> upon a write if no physical "
670 "memory is available. See also the discussion of the file I</proc/sys/vm/"
671 "overcommit_memory> in B<proc_sys_vm>(5). Before Linux 2.6, this flag had "
672 "effect only for private writable mappings."
673 msgstr ""
674
675 #. type: TP
676 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
677 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
678 #, no-wrap
679 msgid "B<MAP_POPULATE> (since Linux 2.5.46)"
680 msgstr ""
681
682 #. type: Plain text
683 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
684 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
685 msgid ""
686 "Populate (prefault) page tables for a mapping. For a file mapping, this "
687 "causes read-ahead on the file. This will help to reduce blocking on page "
688 "faults later. The B<mmap>() call doesn't fail if the mapping cannot be "
689 "populated (for example, due to limitations on the number of mapped huge "
690 "pages when using B<MAP_HUGETLB>). Support for B<MAP_POPULATE> in "
691 "conjunction with private mappings was added in Linux 2.6.23."
692 msgstr ""
693
694 #. type: TP
695 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
696 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
697 #, no-wrap
698 msgid "B<MAP_STACK> (since Linux 2.6.27)"
699 msgstr ""
700
701 #. type: Plain text
702 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
703 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
704 msgid ""
705 "Allocate the mapping at an address suitable for a process or thread stack."
706 msgstr ""
707
708 #. See http://lwn.net/Articles/294642 "Tangled up in threads", 19 Aug 08
709 #. commit cd98a04a59e2f94fa64d5bf1e26498d27427d5e7
710 #. http://thread.gmane.org/gmane.linux.kernel/720412
711 #. "pthread_create() slow for many threads; also time to revisit 64b
712 #. context switch optimization?"
713 #. type: Plain text
714 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
715 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
716 msgid ""
717 "This flag is currently a no-op on Linux. However, by employing this flag, "
718 "applications can ensure that they transparently obtain support if the flag "
719 "is implemented in the future. Thus, it is used in the glibc threading "
720 "implementation to allow for the fact that some architectures may (later) "
721 "require special treatment for stack allocations. A further reason to employ "
722 "this flag is portability: B<MAP_STACK> exists (and has an effect) on some "
723 "other systems (e.g., some of the BSDs)."
724 msgstr ""
725
726 #. type: TP
727 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
728 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
729 #, no-wrap
730 msgid "B<MAP_SYNC> (since Linux 4.15)"
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 "This flag is available only with the B<MAP_SHARED_VALIDATE> mapping type; "
738 "mappings of type B<MAP_SHARED> will silently ignore this flag. This flag is "
739 "supported only for files supporting DAX (direct mapping of persistent "
740 "memory). For other files, creating a mapping with this flag results in an "
741 "B<EOPNOTSUPP> error."
742 msgstr ""
743
744 #. type: Plain text
745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
747 msgid ""
748 "Shared file mappings with this flag provide the guarantee that while some "
749 "memory is mapped writable in the address space of the process, it will be "
750 "visible in the same file at the same offset even after the system crashes or "
751 "is rebooted. In conjunction with the use of appropriate CPU instructions, "
752 "this provides users of such mappings with a more efficient way of making "
753 "data modifications persistent."
754 msgstr ""
755
756 #. type: TP
757 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
758 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
759 #, no-wrap
760 msgid "B<MAP_UNINITIALIZED> (since Linux 2.6.33)"
761 msgstr ""
762
763 #. type: Plain text
764 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
765 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
766 msgid ""
767 "Don't clear anonymous pages. This flag is intended to improve performance "
768 "on embedded devices. This flag is honored only if the kernel was configured "
769 "with the B<CONFIG_MMAP_ALLOW_UNINITIALIZED> option. Because of the security "
770 "implications, that option is normally enabled only on embedded devices "
771 "(i.e., devices where one has complete control of the contents of user "
772 "memory)."
773 msgstr ""
774
775 #. FIXME . for later review when Issue 8 is one day released...
776 #. POSIX may add MAP_ANON in the future
777 #. http://austingroupbugs.net/tag_view_page.php?tag_id=8
778 #. http://austingroupbugs.net/view.php?id=850
779 #. type: Plain text
780 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
781 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
782 msgid ""
783 "Of the above flags, only B<MAP_FIXED> is specified in POSIX.1-2001 and "
784 "POSIX.1-2008. However, most systems also support B<MAP_ANONYMOUS> (or its "
785 "synonym B<MAP_ANON>)."
786 msgstr ""
787
788 #. type: SS
789 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
790 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
791 #, no-wrap
792 msgid "munmap()"
793 msgstr "munmap()"
794
795 #. type: Plain text
796 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
797 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
798 #, fuzzy
799 #| msgid ""
800 #| "The B<munmap> system call deletes the mappings for the specified address "
801 #| "range, and causes further references to addresses within the range to "
802 #| "generate invalid memory references. The region is also automatically "
803 #| "unmapped when the process is terminated. On the other hand, closing the "
804 #| "file descriptor does not unmap the region."
805 msgid ""
806 "The B<munmap>() system call deletes the mappings for the specified address "
807 "range, and causes further references to addresses within the range to "
808 "generate invalid memory references. The region is also automatically "
809 "unmapped when the process is terminated. On the other hand, closing the "
810 "file descriptor does not unmap the region."
811 msgstr ""
812 "A chamada de sistema B<munmap> deleta os mapeamentos para a faixa de "
813 "endereços especificada, e faz com que referencias adicionais para endereços "
814 "dentro da faixa gerem referencias a memória inválida. A região é também "
815 "automaticamente desmapeada quando o processo termina. Por outro lado, "
816 "fechando o descritor de arquivo não desmapeia a região."
817
818 #. type: Plain text
819 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
820 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
821 msgid ""
822 "The address I<addr> must be a multiple of the page size (but I<length> need "
823 "not be). All pages containing a part of the indicated range are unmapped, "
824 "and subsequent references to these pages will generate B<SIGSEGV>. It is "
825 "not an error if the indicated range does not contain any mapped pages."
826 msgstr ""
827
828 #. type: SH
829 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
830 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
831 #, no-wrap
832 msgid "RETURN VALUE"
833 msgstr "VALOR DE RETORNO"
834
835 #. type: Plain text
836 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
837 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
838 #, fuzzy
839 #| msgid ""
840 #| "On success, B<mmap> returns a pointer to the mapped area. On error, "
841 #| "MAP_FAILED (-1) is returned, and I<errno> is set appropriately. On "
842 #| "success, B<munmap> returns 0, on failure -1, and I<errno> is set "
843 #| "(probably to EINVAL)."
844 msgid ""
845 "On success, B<mmap>() returns a pointer to the mapped area. On error, the "
846 "value B<MAP_FAILED> (that is, I<(void\\ *)\\ -1>) is returned, and I<errno> "
847 "is set to indicate the error."
848 msgstr ""
849 "Se bem sucedido, B<mmap> retorna um ponteiro para a área mapeada. No caso de "
850 "erro, MAP_FAILED (-1) é devolvido e I<errno> é selecionado adequadamente. Se "
851 "bem sucedido, B<munmap> devolve 0, caso contrário -1, e I<errno> é "
852 "selecionado (provavelmente para EINVAL)."
853
854 #. type: Plain text
855 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
856 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
857 #, fuzzy
858 #| msgid ""
859 #| "On success, zero is returned. On error, -1 is returned, and I<errno> is "
860 #| "set appropriately."
861 msgid ""
862 "On success, B<munmap>() returns 0. On failure, it returns -1, and I<errno> "
863 "is set to indicate the error (probably to B<EINVAL>)."
864 msgstr ""
865 "Em caso de sucesso, zero é retornado. Caso contrário, -1 é retornado, e "
866 "I<errno> é selecionado adequadamente."
867
868 #. type: SH
869 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
870 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
871 #, no-wrap
872 msgid "ERRORS"
873 msgstr "ERROS"
874
875 #. type: TP
876 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
877 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
878 #, no-wrap
879 msgid "B<EACCES>"
880 msgstr "B<EACCES>"
881
882 #. type: Plain text
883 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
884 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
885 #, fuzzy
886 #| msgid ""
887 #| "MAP_PRIVATE was requested, but I<fd> is not open for reading. Or "
888 #| "MAP_SHARED was requested and PROT_WRITE is set, but I<fd> is not open in "
889 #| "read/write (O_RDWR) mode."
890 msgid ""
891 "A file descriptor refers to a non-regular file. Or a file mapping was "
892 "requested, but I<fd> is not open for reading. Or B<MAP_SHARED> was "
893 "requested and B<PROT_WRITE> is set, but I<fd> is not open in read/write "
894 "(B<O_RDWR>) mode. Or B<PROT_WRITE> is set, but the file is append-only."
895 msgstr ""
896 "MAP_PRIVATE foi requerido, mas I<fd> não estava aberto para leitura. Ou "
897 "MAP_SHARED foi requerido e PROT_WRITE estava selecionada, mas I<fd> não "
898 "estava aberto para leitura e escrita (O_RDWR)."
899
900 #. type: TP
901 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
902 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
903 #, no-wrap
904 msgid "B<EAGAIN>"
905 msgstr "B<EAGAIN>"
906
907 #. type: Plain text
908 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
909 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
910 #, fuzzy
911 #| msgid "The file has been locked, or too much memory has been locked."
912 msgid ""
913 "The file has been locked, or too much memory has been locked (see "
914 "B<setrlimit>(2))."
915 msgstr "O arquivo foi travado, ou também muita memória foi bloqueada."
916
917 #. type: TP
918 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
919 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
920 #, no-wrap
921 msgid "B<EBADF>"
922 msgstr "B<EBADF>"
923
924 #. type: Plain text
925 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
926 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
927 msgid ""
928 "I<fd> is not a valid file descriptor (and B<MAP_ANONYMOUS> was not set)."
929 msgstr ""
930 "I<fd> não é um descritor de arquivos válido (e B<MAP_ANONYMOUS> não foi "
931 "configurado)."
932
933 #. type: TP
934 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
935 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
936 #, no-wrap
937 msgid "B<EEXIST>"
938 msgstr "B<EEXIST>"
939
940 #. type: Plain text
941 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
942 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
943 msgid ""
944 "B<MAP_FIXED_NOREPLACE> was specified in I<flags>, and the range covered by "
945 "I<addr> and I<length> clashes with an existing mapping."
946 msgstr ""
947
948 #. type: TP
949 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
950 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
951 #, no-wrap
952 msgid "B<EINVAL>"
953 msgstr "B<EINVAL>"
954
955 #. type: Plain text
956 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
957 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
958 #, fuzzy
959 #| msgid ""
960 #| "We don't like I<start> or I<length> or I<offset>. (E.g., they are too "
961 #| "large, or not aligned on a PAGESIZE boundary.)"
962 msgid ""
963 "We don't like I<addr>, I<length>, or I<offset> (e.g., they are too large, or "
964 "not aligned on a page boundary)."
965 msgstr ""
966 "Nós não gostamos do I<start> ou I<length> ou I<offset>. (Por exemplo, eles "
967 "são muito grandes, ou não alinhados em um limite de PAGESIZE.)"
968
969 #. type: Plain text
970 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
971 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
972 msgid "(since Linux 2.6.12) I<length> was 0."
973 msgstr ""
974
975 #. type: Plain text
976 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
977 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
978 msgid ""
979 "I<flags> contained none of B<MAP_PRIVATE>, B<MAP_SHARED>, or "
980 "B<MAP_SHARED_VALIDATE>."
981 msgstr ""
982
983 #. type: TP
984 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
985 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
986 #, no-wrap
987 msgid "B<ENFILE>"
988 msgstr "B<ENFILE>"
989
990 #. This is for shared anonymous segments
991 #. [2.6.7] shmem_zero_setup()-->shmem_file_setup()-->get_empty_filp()
992 #. .TP
993 #. .B ENOEXEC
994 #. A file could not be mapped for reading.
995 #. type: Plain text
996 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
997 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
998 msgid ""
999 "The system-wide limit on the total number of open files has been reached."
1000 msgstr ""
1001 "O limite para todo o sistema no número total de arquivos abertos foi "
1002 "alcançado."
1003
1004 #. type: TP
1005 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1006 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1007 #, no-wrap
1008 msgid "B<ENODEV>"
1009 msgstr "B<ENODEV>"
1010
1011 #. type: Plain text
1012 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1013 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1014 msgid ""
1015 "The underlying filesystem of the specified file does not support memory "
1016 "mapping."
1017 msgstr ""
1018
1019 #. type: TP
1020 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1021 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1022 #, no-wrap
1023 msgid "B<ENOMEM>"
1024 msgstr "B<ENOMEM>"
1025
1026 #. type: Plain text
1027 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1028 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1029 msgid "No memory is available."
1030 msgstr "Sem memória disponível."
1031
1032 #. type: Plain text
1033 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1034 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1035 msgid ""
1036 "The process's maximum number of mappings would have been exceeded. This "
1037 "error can also occur for B<munmap>(), when unmapping a region in the middle "
1038 "of an existing mapping, since this results in two smaller mappings on either "
1039 "side of the region being unmapped."
1040 msgstr ""
1041
1042 #. type: Plain text
1043 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1044 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1045 msgid ""
1046 "(since Linux 4.7) The process's B<RLIMIT_DATA> limit, described in "
1047 "B<getrlimit>(2), would have been exceeded."
1048 msgstr ""
1049
1050 #. type: Plain text
1051 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1052 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1053 msgid ""
1054 "We don't like I<addr>, because it exceeds the virtual address space of the "
1055 "CPU."
1056 msgstr ""
1057
1058 #. type: TP
1059 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1060 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1061 #, no-wrap
1062 msgid "B<EOVERFLOW>"
1063 msgstr "B<EOVERFLOW>"
1064
1065 #. type: Plain text
1066 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1067 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1068 msgid ""
1069 "On 32-bit architecture together with the large file extension (i.e., using "
1070 "64-bit I<off_t>): the number of pages used for I<length> plus number of "
1071 "pages used for I<offset> would overflow I<unsigned long> (32 bits)."
1072 msgstr ""
1073
1074 #. type: TP
1075 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1076 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1077 #, no-wrap
1078 msgid "B<EPERM>"
1079 msgstr "B<EPERM>"
1080
1081 #. (Since Linux 2.4.25 / Linux 2.6.0.)
1082 #. type: Plain text
1083 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1084 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1085 msgid ""
1086 "The I<prot> argument asks for B<PROT_EXEC> but the mapped area belongs to a "
1087 "file on a filesystem that was mounted no-exec."
1088 msgstr ""
1089
1090 #. type: Plain text
1091 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1092 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1093 msgid "The operation was prevented by a file seal; see B<fcntl>(2)."
1094 msgstr ""
1095
1096 #. type: Plain text
1097 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1098 #: opensuse-tumbleweed
1099 msgid ""
1100 "The B<MAP_HUGETLB> flag was specified, but the caller was not privileged "
1101 "(did not have the B<CAP_IPC_LOCK> capability) and is not a member of the "
1102 "I<hugetlb_shm_group> group; see the description of I</proc/sys/vm/"
1103 "hugetlb_shm_group> in B<proc_sys_vm>(5)."
1104 msgstr ""
1105
1106 #. type: TP
1107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1109 #, no-wrap
1110 msgid "B<ETXTBSY>"
1111 msgstr "B<ETXTBSY>"
1112
1113 #. type: Plain text
1114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1116 msgid ""
1117 "B<MAP_DENYWRITE> was set but the object specified by I<fd> is open for "
1118 "writing."
1119 msgstr ""
1120 "B<MAP_DENYWRITE> foi selecionado pelo objeto especificado por I<fd> é aberto "
1121 "para escrita."
1122
1123 #. type: Plain text
1124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1126 msgid "Use of a mapped region can result in these signals:"
1127 msgstr "O uso de memória mapeada pode resultar em um desses sinais:"
1128
1129 #. type: TP
1130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1132 #, no-wrap
1133 msgid "B<SIGSEGV>"
1134 msgstr "B<SIGSEGV>"
1135
1136 #. type: Plain text
1137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1139 #, fuzzy
1140 #| msgid "Attempted write into a region specified to mmap as read-only."
1141 msgid "Attempted write into a region mapped as read-only."
1142 msgstr ""
1143 "Tentativa de escrever em uma região especificada pelo mmap como somente "
1144 "leitura."
1145
1146 #. type: TP
1147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1149 #, no-wrap
1150 msgid "B<SIGBUS>"
1151 msgstr "B<SIGBUS>"
1152
1153 #. type: Plain text
1154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1156 msgid ""
1157 "Attempted access to a page of the buffer that lies beyond the end of the "
1158 "mapped file. For an explanation of the treatment of the bytes in the page "
1159 "that corresponds to the end of a mapped file that is not a multiple of the "
1160 "page size, see NOTES."
1161 msgstr ""
1162
1163 #. type: SH
1164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1166 #, no-wrap
1167 msgid "ATTRIBUTES"
1168 msgstr "ATRIBUTOS"
1169
1170 #. type: Plain text
1171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1173 msgid ""
1174 "For an explanation of the terms used in this section, see B<attributes>(7)."
1175 msgstr ""
1176 "Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)."
1177
1178 #. type: tbl table
1179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1181 #, no-wrap
1182 msgid "Interface"
1183 msgstr "Interface"
1184
1185 #. type: tbl table
1186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1188 #, no-wrap
1189 msgid "Attribute"
1190 msgstr "Atributo"
1191
1192 #. type: tbl table
1193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1195 #, no-wrap
1196 msgid "Value"
1197 msgstr "Valor"
1198
1199 #. type: tbl table
1200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1202 #, no-wrap
1203 msgid ".na\n"
1204 msgstr ".na\n"
1205
1206 #. type: tbl table
1207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1209 #, no-wrap
1210 msgid ".nh\n"
1211 msgstr ".nh\n"
1212
1213 #. type: tbl table
1214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1216 #, no-wrap
1217 msgid ""
1218 "B<mmap>(),\n"
1219 "B<munmap>()"
1220 msgstr ""
1221 "B<mmap>(),\n"
1222 "B<munmap>()"
1223
1224 #. type: tbl table
1225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1227 #, no-wrap
1228 msgid "Thread safety"
1229 msgstr "Thread safety"
1230
1231 #. type: tbl table
1232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1234 #, no-wrap
1235 msgid "MT-Safe"
1236 msgstr "MT-Safe"
1237
1238 #. type: SH
1239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1241 #, no-wrap
1242 msgid "VERSIONS"
1243 msgstr "VERSÕES"
1244
1245 #. type: Plain text
1246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1248 msgid ""
1249 "On some hardware architectures (e.g., i386), B<PROT_WRITE> implies "
1250 "B<PROT_READ>. It is architecture dependent whether B<PROT_READ> implies "
1251 "B<PROT_EXEC> or not. Portable programs should always set B<PROT_EXEC> if "
1252 "they intend to execute code in the new mapping."
1253 msgstr ""
1254
1255 #. type: Plain text
1256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1258 msgid ""
1259 "The portable way to create a mapping is to specify I<addr> as 0 (NULL), and "
1260 "omit B<MAP_FIXED> from I<flags>. In this case, the system chooses the "
1261 "address for the mapping; the address is chosen so as not to conflict with "
1262 "any existing mapping, and will not be 0. If the B<MAP_FIXED> flag is "
1263 "specified, and I<addr> is 0 (NULL), then the mapped address will be 0 (NULL)."
1264 msgstr ""
1265
1266 #. type: Plain text
1267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1269 msgid ""
1270 "Certain I<flags> constants are defined only if suitable feature test macros "
1271 "are defined (possibly by default): B<_DEFAULT_SOURCE> with glibc 2.19 or "
1272 "later; or B<_BSD_SOURCE> or B<_SVID_SOURCE> in glibc 2.19 and earlier. "
1273 "(Employing B<_GNU_SOURCE> also suffices, and requiring that macro "
1274 "specifically would have been more logical, since these flags are all Linux-"
1275 "specific.) The relevant flags are: B<MAP_32BIT>, B<MAP_ANONYMOUS> (and the "
1276 "synonym B<MAP_ANON>), B<MAP_DENYWRITE>, B<MAP_EXECUTABLE>, B<MAP_FILE>, "
1277 "B<MAP_GROWSDOWN>, B<MAP_HUGETLB>, B<MAP_LOCKED>, B<MAP_NONBLOCK>, "
1278 "B<MAP_NORESERVE>, B<MAP_POPULATE>, and B<MAP_STACK>."
1279 msgstr ""
1280
1281 #. type: SS
1282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1284 #, no-wrap
1285 msgid "C library/kernel differences"
1286 msgstr "Diferenças entre kernel/biblioteca C"
1287
1288 #. Since around glibc 2.1/2.2, depending on the platform.
1289 #. type: Plain text
1290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1292 msgid ""
1293 "This page describes the interface provided by the glibc B<mmap>() wrapper "
1294 "function. Originally, this function invoked a system call of the same "
1295 "name. Since Linux 2.4, that system call has been superseded by B<mmap2>(2), "
1296 "and nowadays the glibc B<mmap>() wrapper function invokes B<mmap2>(2) with "
1297 "a suitably adjusted value for I<offset>."
1298 msgstr ""
1299
1300 #. type: SH
1301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1303 #, no-wrap
1304 msgid "STANDARDS"
1305 msgstr "PADRÕES"
1306
1307 #. type: Plain text
1308 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1309 #: opensuse-tumbleweed
1310 msgid "POSIX.1-2024."
1311 msgstr "POSIX.1-2024."
1312
1313 #. type: SH
1314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1316 #, no-wrap
1317 msgid "HISTORY"
1318 msgstr "HISTÓRICO"
1319
1320 #. SVr4 documents additional error codes ENXIO and ENODEV.
1321 #. SUSv2 documents additional error codes EMFILE and EOVERFLOW.
1322 #. type: Plain text
1323 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1324 #: opensuse-tumbleweed
1325 #, fuzzy
1326 #| msgid "SVr4, 4.3BSD, POSIX.1-2001."
1327 msgid "SVr4, 4.4BSD, SUSv1, POSIX.1-1996."
1328 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
1329
1330 #. POSIX.1-2001: It shall be defined to -1 or 0 or 200112L.
1331 #. -1: unavailable, 0: ask using sysconf().
1332 #. glibc defines it to 1.
1333 #. type: Plain text
1334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1336 msgid ""
1337 "On POSIX systems on which B<mmap>(), B<msync>(2), and B<munmap>() are "
1338 "available, B<_POSIX_MAPPED_FILES> is defined in I<E<lt>unistd.hE<gt>> to a "
1339 "value greater than 0. (See also B<sysconf>(3).)"
1340 msgstr ""
1341
1342 #. type: SH
1343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1345 #, no-wrap
1346 msgid "NOTES"
1347 msgstr "NOTAS"
1348
1349 #. type: Plain text
1350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1352 msgid ""
1353 "Memory mapped by B<mmap>() is preserved across B<fork>(2), with the same "
1354 "attributes."
1355 msgstr ""
1356 "Memória mapeada por B<mmap>() é preservada através B<fork>(2), com os mesmos "
1357 "atributos."
1358
1359 #. type: Plain text
1360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1362 msgid ""
1363 "A file is mapped in multiples of the page size. For a file that is not a "
1364 "multiple of the page size, the remaining bytes in the partial page at the "
1365 "end of the mapping are zeroed when mapped, and modifications to that region "
1366 "are not written out to the file. The effect of changing the size of the "
1367 "underlying file of a mapping on the pages that correspond to added or "
1368 "removed regions of the file is unspecified."
1369 msgstr ""
1370
1371 #. type: Plain text
1372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1374 msgid ""
1375 "An application can determine which pages of a mapping are currently resident "
1376 "in the buffer/page cache using B<mincore>(2)."
1377 msgstr ""
1378
1379 #. type: SS
1380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1382 #, no-wrap
1383 msgid "Using MAP_FIXED safely"
1384 msgstr ""
1385
1386 #. type: Plain text
1387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1389 msgid ""
1390 "The only safe use for B<MAP_FIXED> is where the address range specified by "
1391 "I<addr> and I<length> was previously reserved using another mapping; "
1392 "otherwise, the use of B<MAP_FIXED> is hazardous because it forcibly removes "
1393 "preexisting mappings, making it easy for a multithreaded process to corrupt "
1394 "its own address space."
1395 msgstr ""
1396
1397 #. type: Plain text
1398 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1399 #: opensuse-tumbleweed
1400 msgid ""
1401 "For example, suppose that thread A looks through I</proc/>pidI</maps> in "
1402 "order to locate an unused address range that it can map using B<MAP_FIXED>, "
1403 "while thread B simultaneously acquires part or all of that same address "
1404 "range. When thread A subsequently employs B<mmap(MAP_FIXED)>, it will "
1405 "effectively clobber the mapping that thread B created. In this scenario, "
1406 "thread B need not create a mapping directly; simply making a library call "
1407 "that, internally, uses B<dlopen>(3) to load some other shared library, will "
1408 "suffice. The B<dlopen>(3) call will map the library into the process's "
1409 "address space. Furthermore, almost any library call may be implemented in a "
1410 "way that adds memory mappings to the address space, either with this "
1411 "technique, or by simply allocating memory. Examples include B<brk>(2), "
1412 "B<malloc>(3), B<pthread_create>(3), and the PAM libraries E<.UR http:\\://"
1413 "www.linux-pam.org> E<.UE .>"
1414 msgstr ""
1415
1416 #. type: Plain text
1417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1419 msgid ""
1420 "Since Linux 4.17, a multithreaded program can use the B<MAP_FIXED_NOREPLACE> "
1421 "flag to avoid the hazard described above when attempting to create a mapping "
1422 "at a fixed address that has not been reserved by a preexisting mapping."
1423 msgstr ""
1424
1425 #. type: SS
1426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1428 #, no-wrap
1429 msgid "Timestamps changes for file-backed mappings"
1430 msgstr ""
1431
1432 #. type: Plain text
1433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1435 msgid ""
1436 "For file-backed mappings, the I<st_atime> field for the mapped file may be "
1437 "updated at any time between the B<mmap>() and the corresponding unmapping; "
1438 "the first reference to a mapped page will update the field if it has not "
1439 "been already."
1440 msgstr ""
1441
1442 #. type: Plain text
1443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1445 msgid ""
1446 "The I<st_ctime> and I<st_mtime> field for a file mapped with B<PROT_WRITE> "
1447 "and B<MAP_SHARED> will be updated after a write to the mapped region, and "
1448 "before a subsequent B<msync>(2) with the B<MS_SYNC> or B<MS_ASYNC> flag, if "
1449 "one occurs."
1450 msgstr ""
1451
1452 #. type: SS
1453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1455 #, no-wrap
1456 msgid "Huge page (Huge TLB) mappings"
1457 msgstr ""
1458
1459 #. type: Plain text
1460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1462 msgid ""
1463 "For mappings that employ huge pages, the requirements for the arguments of "
1464 "B<mmap>() and B<munmap>() differ somewhat from the requirements for "
1465 "mappings that use the native system page size."
1466 msgstr ""
1467
1468 #. type: Plain text
1469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1471 msgid ""
1472 "For B<mmap>(), I<offset> must be a multiple of the underlying huge page "
1473 "size. The system automatically aligns I<length> to be a multiple of the "
1474 "underlying huge page size."
1475 msgstr ""
1476
1477 #. type: Plain text
1478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1480 msgid ""
1481 "For B<munmap>(), I<addr>, and I<length> must both be a multiple of the "
1482 "underlying huge page size."
1483 msgstr ""
1484
1485 #. type: SH
1486 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1487 #: opensuse-tumbleweed
1488 #, no-wrap
1489 msgid "CAVEATS"
1490 msgstr ""
1491
1492 #. type: Plain text
1493 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1494 #: opensuse-tumbleweed
1495 msgid ""
1496 "Unlike typical B<malloc>(3) implementations, B<mmap>() does not prevent "
1497 "creating objects larger than B<PTRDIFF_MAX>. Objects that are larger than "
1498 "B<PTRDIFF_MAX> only work in limited ways in C (in particular, pointer "
1499 "subtraction results in undefined behavior if the result would be bigger than "
1500 "B<PTRDIFF_MAX>). On top of that, GCC also assumes that no object is bigger "
1501 "than B<PTRDIFF_MAX>. B<PTRDIFF_MAX> is usually half of the address space "
1502 "size; so for 32-bit processes, it is usually B<0x7fffffff> (almost 2 GiB)."
1503 msgstr ""
1504
1505 #. type: SH
1506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1508 #, no-wrap
1509 msgid "BUGS"
1510 msgstr "BUGS"
1511
1512 #. type: Plain text
1513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1515 msgid ""
1516 "On Linux, there are no guarantees like those suggested above under "
1517 "B<MAP_NORESERVE>. By default, any process can be killed at any moment when "
1518 "the system runs out of memory."
1519 msgstr ""
1520
1521 #. type: Plain text
1522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1524 msgid ""
1525 "Before Linux 2.6.7, the B<MAP_POPULATE> flag has effect only if I<prot> is "
1526 "specified as B<PROT_NONE>."
1527 msgstr ""
1528
1529 #. type: Plain text
1530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1532 msgid ""
1533 "SUSv3 specifies that B<mmap>() should fail if I<length> is 0. However, "
1534 "before Linux 2.6.12, B<mmap>() succeeded in this case: no mapping was "
1535 "created and the call returned I<addr>. Since Linux 2.6.12, B<mmap>() fails "
1536 "with the error B<EINVAL> for this case."
1537 msgstr ""
1538
1539 #. type: Plain text
1540 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1541 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1542 msgid ""
1543 "POSIX specifies that the system shall always zero fill any partial page at "
1544 "the end of the object and that system will never write any modification of "
1545 "the object beyond its end. On Linux, when you write data to such partial "
1546 "page after the end of the object, the data stays in the page cache even "
1547 "after the file is closed and unmapped and even though the data is never "
1548 "written to the file itself, subsequent mappings may see the modified "
1549 "content. In some cases, this could be fixed by calling B<msync>(2) before "
1550 "the unmap takes place; however, this doesn't work on B<tmpfs>(5) (for "
1551 "example, when using the POSIX shared memory interface documented in "
1552 "B<shm_overview>(7))."
1553 msgstr ""
1554
1555 #. type: SH
1556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1558 #, no-wrap
1559 msgid "EXAMPLES"
1560 msgstr "EXEMPLOS"
1561
1562 #. FIXME . Add an example here that uses an anonymous shared region for
1563 #. IPC between parent and child.
1564 #. type: Plain text
1565 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1566 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1567 msgid ""
1568 "The following program prints part of the file specified in its first command-"
1569 "line argument to standard output. The range of bytes to be printed is "
1570 "specified via offset and length values in the second and third command-line "
1571 "arguments. The program creates a memory mapping of the required pages of "
1572 "the file and then uses B<write>(2) to output the desired bytes."
1573 msgstr ""
1574
1575 #. type: SS
1576 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1577 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1578 #, no-wrap
1579 msgid "Program source"
1580 msgstr "Fonte do programa"
1581
1582 #. type: Plain text
1583 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1584 #: opensuse-tumbleweed
1585 #, no-wrap
1586 msgid ""
1587 "#include E<lt>err.hE<gt>\n"
1588 "#include E<lt>fcntl.hE<gt>\n"
1589 "#include E<lt>stdio.hE<gt>\n"
1590 "#include E<lt>stdlib.hE<gt>\n"
1591 "#include E<lt>sys/mman.hE<gt>\n"
1592 "#include E<lt>sys/stat.hE<gt>\n"
1593 "#include E<lt>sys/types.hE<gt>\n"
1594 "#include E<lt>unistd.hE<gt>\n"
1595 "\\&\n"
1596 "int\n"
1597 "main(int argc, char *argv[])\n"
1598 "{\n"
1599 " int fd;\n"
1600 " char *addr;\n"
1601 " off_t offset, pa_offset;\n"
1602 " size_t length;\n"
1603 " ssize_t s;\n"
1604 " struct stat sb;\n"
1605 "\\&\n"
1606 " if (argc E<lt> 3 || argc E<gt> 4) {\n"
1607 " fprintf(stderr, \"%s file offset [length]\\[rs]n\", argv[0]);\n"
1608 " exit(EXIT_FAILURE);\n"
1609 " }\n"
1610 "\\&\n"
1611 " fd = open(argv[1], O_RDONLY);\n"
1612 " if (fd == -1)\n"
1613 " err(EXIT_FAILURE, \"open\");\n"
1614 "\\&\n"
1615 " if (fstat(fd, &sb) == -1) /* To obtain file size */\n"
1616 " err(EXIT_FAILURE, \"fstat\");\n"
1617 "\\&\n"
1618 " offset = atoi(argv[2]);\n"
1619 " pa_offset = offset & \\[ti](sysconf(_SC_PAGE_SIZE) - 1);\n"
1620 " /* offset for mmap() must be page aligned */\n"
1621 "\\&\n"
1622 " if (offset E<gt>= sb.st_size) {\n"
1623 " fprintf(stderr, \"offset is past end of file\\[rs]n\");\n"
1624 " exit(EXIT_FAILURE);\n"
1625 " }\n"
1626 "\\&\n"
1627 " if (argc == 4) {\n"
1628 " length = atoi(argv[3]);\n"
1629 " if (offset + length E<gt> sb.st_size)\n"
1630 " length = sb.st_size - offset;\n"
1631 " /* Can\\[aq]t display bytes past end of file */\n"
1632 "\\&\n"
1633 " } else { /* No length arg ==E<gt> display to end of file */\n"
1634 " length = sb.st_size - offset;\n"
1635 " }\n"
1636 "\\&\n"
1637 " addr = mmap(NULL, length + offset - pa_offset, PROT_READ,\n"
1638 " MAP_PRIVATE, fd, pa_offset);\n"
1639 " if (addr == MAP_FAILED)\n"
1640 " err(EXIT_FAILURE, \"mmap\");\n"
1641 "\\&\n"
1642 " s = write(STDOUT_FILENO, addr + offset - pa_offset, length);\n"
1643 " if (s != length) {\n"
1644 " if (s == -1)\n"
1645 " err(EXIT_FAILURE, \"write\");\n"
1646 "\\&\n"
1647 " fprintf(stderr, \"partial write\");\n"
1648 " exit(EXIT_FAILURE);\n"
1649 " }\n"
1650 "\\&\n"
1651 " munmap(addr, length + offset - pa_offset);\n"
1652 " close(fd);\n"
1653 "\\&\n"
1654 " exit(EXIT_SUCCESS);\n"
1655 "}\n"
1656 msgstr ""
1657
1658 #. SRC END
1659 #. type: SH
1660 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1661 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1662 #, no-wrap
1663 msgid "SEE ALSO"
1664 msgstr "VEJA TAMBÉM"
1665
1666 #. type: Plain text
1667 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1668 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1669 msgid ""
1670 "B<ftruncate>(2), B<getpagesize>(2), B<memfd_create>(2), B<mincore>(2), "
1671 "B<mlock>(2), B<mmap2>(2), B<mprotect>(2), B<mremap>(2), B<msync>(2), "
1672 "B<remap_file_pages>(2), B<setrlimit>(2), B<shmat>(2), B<userfaultfd>(2), "
1673 "B<shm_open>(3), B<shm_overview>(7)"
1674 msgstr ""
1675 "B<ftruncate>(2), B<getpagesize>(2), B<memfd_create>(2), B<mincore>(2), "
1676 "B<mlock>(2), B<mmap2>(2), B<mprotect>(2), B<mremap>(2), B<msync>(2), "
1677 "B<remap_file_pages>(2), B<setrlimit>(2), B<shmat>(2), B<userfaultfd>(2), "
1678 "B<shm_open>(3), B<shm_overview>(7)"
1679
1680 #. type: Plain text
1681 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1682 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1683 msgid ""
1684 "The descriptions of the following files in B<proc>(5): I</proc/>pidI</maps>, "
1685 "I</proc/>pidI</map_files>, and I</proc/>pidI</smaps>."
1686 msgstr ""
1687
1688 #. type: Plain text
1689 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1690 #: opensuse-tumbleweed
1691 msgid ""
1692 "B.O.\\& Gallmeister, POSIX.4, O'Reilly, pp.\\& 128\\[en]129 and 389\\[en]391."
1693 msgstr ""
1694
1695 #. type: TH
1696 #: debian-trixie
1697 #, no-wrap
1698 msgid "2024-06-15"
1699 msgstr "15 junho 2024"
1700
1701 #. type: TH
1702 #: debian-trixie
1703 #, no-wrap
1704 msgid "Linux man-pages 6.9.1"
1705 msgstr "Linux man-pages 6.9.1"
1706
1707 #. type: Plain text
1708 #: debian-trixie
1709 msgid "Standard C library (I<libc>, I<-lc>)"
1710 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
1711
1712 #. type: Plain text
1713 #: debian-trixie fedora-44 fedora-rawhide
1714 #, fuzzy, no-wrap
1715 #| msgid ""
1716 #| "B<void *mmap(void *>I<addr>B<, size_t >I<length>B<, int >I<prot>B<, int >I<flags>B<,>\n"
1717 #| "B< int >I<fd>B<, off_t >I<offset>B<);>\n"
1718 #| "B<int munmap(void *>I<addr>B<, size_t >I<length>B<);>\n"
1719 msgid ""
1720 "B<void *mmap(void >I<addr>B<[.>I<length>B<], size_t >I<length>B<, int >I<prot>B<, int >I<flags>B<,>\n"
1721 "B< int >I<fd>B<, off_t >I<offset>B<);>\n"
1722 "B<int munmap(void >I<addr>B<[.>I<length>B<], size_t >I<length>B<);>\n"
1723 msgstr ""
1724 "B<void *mmap(void *>I<addr>B<, size_t >I<length>B<, int >I<prot>B<, int >I<flags>B<,>\n"
1725 "B< int >I<fd>B<, off_t >I<offset>B<);>\n"
1726 "B<int munmap(void *>I<addr>B<, size_t >I<length>B<);>\n"
1727
1728 #. type: Plain text
1729 #: debian-trixie
1730 msgid "See NOTES for information on feature test macro requirements."
1731 msgstr ""
1732
1733 #. commit a4ff8e8620d3f4f50ac4b41e8067b7d395056843
1734 #. type: Plain text
1735 #: debian-trixie fedora-44 fedora-rawhide
1736 msgid ""
1737 "This flag provides behavior that is similar to B<MAP_FIXED> with respect to "
1738 "the I<addr> enforcement, but differs in that B<MAP_FIXED_NOREPLACE> never "
1739 "clobbers a preexisting mapped range. If the requested range would collide "
1740 "with an existing mapping, then this call fails with the error B<EEXIST.> "
1741 "This flag can therefore be used as a way to atomically (with respect to "
1742 "other threads) attempt to map an address range: one thread will succeed; all "
1743 "others will report failure."
1744 msgstr ""
1745
1746 #. type: Plain text
1747 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
1748 msgid ""
1749 "This flag is used for stacks. It indicates to the kernel virtual memory "
1750 "system that the mapping should extend downward in memory. The return "
1751 "address is one page lower than the memory area that is actually created in "
1752 "the process's virtual address space. Touching an address in the \"guard\" "
1753 "page below the mapping will cause the mapping to grow by a page. This "
1754 "growth can be repeated until the mapping grows to within a page of the high "
1755 "end of the next lower mapping, at which point touching the \"guard\" page "
1756 "will result in a B<SIGSEGV> signal."
1757 msgstr ""
1758
1759 #. type: Plain text
1760 #: debian-trixie fedora-44 fedora-rawhide
1761 msgid ""
1762 "Do not reserve swap space for this mapping. When swap space is reserved, "
1763 "one has the guarantee that it is possible to modify the mapping. When swap "
1764 "space is not reserved one might get B<SIGSEGV> upon a write if no physical "
1765 "memory is available. See also the discussion of the file I</proc/sys/vm/"
1766 "overcommit_memory> in B<proc>(5). Before Linux 2.6, this flag had effect "
1767 "only for private writable mappings."
1768 msgstr ""
1769
1770 #. type: Plain text
1771 #: debian-trixie fedora-44 fedora-rawhide
1772 msgid ""
1773 "The B<MAP_HUGETLB> flag was specified, but the caller was not privileged "
1774 "(did not have the B<CAP_IPC_LOCK> capability) and is not a member of the "
1775 "I<sysctl_hugetlb_shm_group> group; see the description of I</proc/sys/vm/"
1776 "sysctl_hugetlb_shm_group> in B<proc_sys>(5)."
1777 msgstr ""
1778
1779 #. type: Plain text
1780 #: debian-trixie fedora-44 fedora-rawhide
1781 msgid "POSIX.1-2008."
1782 msgstr "POSIX.1-2008."
1783
1784 #. SVr4 documents additional error codes ENXIO and ENODEV.
1785 #. SUSv2 documents additional error codes EMFILE and EOVERFLOW.
1786 #. type: Plain text
1787 #: debian-trixie fedora-44 fedora-rawhide
1788 msgid "POSIX.1-2001, SVr4, 4.4BSD."
1789 msgstr "POSIX.1-2001, SVr4, 4.4BSD."
1790
1791 #. type: Plain text
1792 #: debian-trixie fedora-44 fedora-rawhide
1793 msgid ""
1794 "For example, suppose that thread A looks through I</proc/>pidI</maps> in "
1795 "order to locate an unused address range that it can map using B<MAP_FIXED>, "
1796 "while thread B simultaneously acquires part or all of that same address "
1797 "range. When thread A subsequently employs B<mmap(MAP_FIXED)>, it will "
1798 "effectively clobber the mapping that thread B created. In this scenario, "
1799 "thread B need not create a mapping directly; simply making a library call "
1800 "that, internally, uses B<dlopen>(3) to load some other shared library, will "
1801 "suffice. The B<dlopen>(3) call will map the library into the process's "
1802 "address space. Furthermore, almost any library call may be implemented in a "
1803 "way that adds memory mappings to the address space, either with this "
1804 "technique, or by simply allocating memory. Examples include B<brk>(2), "
1805 "B<malloc>(3), B<pthread_create>(3), and the PAM libraries E<.UR http://"
1806 "www.linux-pam.org> E<.UE .>"
1807 msgstr ""
1808
1809 #. type: Plain text
1810 #: debian-trixie fedora-44 fedora-rawhide
1811 #, no-wrap
1812 msgid ""
1813 "#include E<lt>fcntl.hE<gt>\n"
1814 "#include E<lt>stdio.hE<gt>\n"
1815 "#include E<lt>stdlib.hE<gt>\n"
1816 "#include E<lt>sys/mman.hE<gt>\n"
1817 "#include E<lt>sys/stat.hE<gt>\n"
1818 "#include E<lt>sys/types.hE<gt>\n"
1819 "#include E<lt>unistd.hE<gt>\n"
1820 "\\&\n"
1821 "#define handle_error(msg) \\[rs]\n"
1822 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
1823 "\\&\n"
1824 "int\n"
1825 "main(int argc, char *argv[])\n"
1826 "{\n"
1827 " int fd;\n"
1828 " char *addr;\n"
1829 " off_t offset, pa_offset;\n"
1830 " size_t length;\n"
1831 " ssize_t s;\n"
1832 " struct stat sb;\n"
1833 "\\&\n"
1834 " if (argc E<lt> 3 || argc E<gt> 4) {\n"
1835 " fprintf(stderr, \"%s file offset [length]\\[rs]n\", argv[0]);\n"
1836 " exit(EXIT_FAILURE);\n"
1837 " }\n"
1838 "\\&\n"
1839 " fd = open(argv[1], O_RDONLY);\n"
1840 " if (fd == -1)\n"
1841 " handle_error(\"open\");\n"
1842 "\\&\n"
1843 " if (fstat(fd, &sb) == -1) /* To obtain file size */\n"
1844 " handle_error(\"fstat\");\n"
1845 "\\&\n"
1846 " offset = atoi(argv[2]);\n"
1847 " pa_offset = offset & \\[ti](sysconf(_SC_PAGE_SIZE) - 1);\n"
1848 " /* offset for mmap() must be page aligned */\n"
1849 "\\&\n"
1850 " if (offset E<gt>= sb.st_size) {\n"
1851 " fprintf(stderr, \"offset is past end of file\\[rs]n\");\n"
1852 " exit(EXIT_FAILURE);\n"
1853 " }\n"
1854 "\\&\n"
1855 " if (argc == 4) {\n"
1856 " length = atoi(argv[3]);\n"
1857 " if (offset + length E<gt> sb.st_size)\n"
1858 " length = sb.st_size - offset;\n"
1859 " /* Can\\[aq]t display bytes past end of file */\n"
1860 "\\&\n"
1861 " } else { /* No length arg ==E<gt> display to end of file */\n"
1862 " length = sb.st_size - offset;\n"
1863 " }\n"
1864 "\\&\n"
1865 " addr = mmap(NULL, length + offset - pa_offset, PROT_READ,\n"
1866 " MAP_PRIVATE, fd, pa_offset);\n"
1867 " if (addr == MAP_FAILED)\n"
1868 " handle_error(\"mmap\");\n"
1869 "\\&\n"
1870 " s = write(STDOUT_FILENO, addr + offset - pa_offset, length);\n"
1871 " if (s != length) {\n"
1872 " if (s == -1)\n"
1873 " handle_error(\"write\");\n"
1874 "\\&\n"
1875 " fprintf(stderr, \"partial write\");\n"
1876 " exit(EXIT_FAILURE);\n"
1877 " }\n"
1878 "\\&\n"
1879 " munmap(addr, length + offset - pa_offset);\n"
1880 " close(fd);\n"
1881 "\\&\n"
1882 " exit(EXIT_SUCCESS);\n"
1883 "}\n"
1884 msgstr ""
1885
1886 #. type: Plain text
1887 #: debian-trixie fedora-44 fedora-rawhide
1888 msgid "B.O. Gallmeister, POSIX.4, O'Reilly, pp. 128\\[en]129 and 389\\[en]391."
1889 msgstr ""
1890
1891 #. type: TH
1892 #: fedora-44 fedora-rawhide
1893 #, no-wrap
1894 msgid "2024-07-23"
1895 msgstr "23 julho 2024"
1896
1897 #. type: TH
1898 #: fedora-44 fedora-rawhide
1899 #, no-wrap
1900 msgid "Linux man-pages 6.13"
1901 msgstr "Linux man-pages 6.13"
1902
1903 #. type: TH
1904 #: mageia-cauldron
1905 #, no-wrap
1906 msgid "2026-02-11"
1907 msgstr "11 fevereiro 2026"
1908
1909 #. type: TH
1910 #: mageia-cauldron
1911 #, no-wrap
1912 msgid "Linux man-pages 6.17"
1913 msgstr "Linux man-pages 6.17"
1914
1915 #. type: TH
1916 #: opensuse-leap-16-1 opensuse-tumbleweed
1917 #, no-wrap
1918 msgid "Linux man-pages (unreleased)"
1919 msgstr "Linux man-pages (não lançado)"