Debian Codegraph @

po/ko/man2/mmap.2.po

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