Debian Codegraph @

po/es/man2/mmap.2.po

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