1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" Copyright (C) 2002, Michael Kerrisk
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date. The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein. The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" Modified 31 Jan 2002, Michael Kerrisk <mtk-manpages@gmx.net>
.\" Added description of mmap2
.\" Modified, 2004-11-25, mtk -- removed stray #endif in prototype
.\"
.\" Japanese Version Copyright (c) 2002 Yuichi SATO
.\" all rights reserved.
.\" Translated Thu Jul 18 04:52:17 JST 2002
.\" by Yuichi SATO <ysato@h4.dion.ne.jp>
.\" Updated & Modified Sat Sep 6 17:35:03 JST 2003
.\" by Yuichi SATO <ysato444@yahoo.co.jp>
.\"
.TH MMAP2 2 2002-01-31 "Linux 2.3.31" "Linux Programmer's Manual"
.SH ̾
mmap2 \- եǥХ˥ޥåפ
.SH
.B #include <sys/mman.h>
.br
.B #include <syscall.h>
.br
.B #include <errno.h>
.sp
.BI "_syscall6(void *, " mmap2 ", void *, " start ", size_t, " length ,
.BI "int, " prot ", int, " flags ", int, " fd ", off_t, " pgoffset )
.sp
.BI "void * mmap2(void *" start ", size_t " length ", int " prot ,
.BI "int " flags ", int " fd ", off_t " pgoffset );
.SH
ؿ
.B mmap2
.BR mmap (2)
Ʊ褦ư롣
ǸΰˤϡեΥեåȤ
(Хñ̤ǤϤʤ) ƥΥڡñ̤Ȥƻꤹ롣
ˤꡢ32 ӥåȤ
.I off_t
Ȥץꥱ
(ŪʥƥǤ 2^44 ХȤޤǤ)
礭ʥեޥåפǤ褦ˤʤ롣
.SH "֤"
硢
.B mmap2
ϥޥåפ줿ΰؤΥݥ֤
顼ξ -1 ֤ơ
.I errno
Ŭڤꤵ롣
.SH 顼
.TP
.B EFAULT
桼֤ǡȤ꤬ä
.SH
ؿ
.B mmap2
ϡLinux 2.3.31 ʹߤǻѲǽǤ롣
Linux ȼδؿʤΤǡ
ܿͤץꥱǤϻѤ٤Ǥʤ
LFS (Large File Summit) ΰǤ
.I mmap64()
ؿ⻲Ȥ뤳ȡ
.SH Ϣ
.BR getpagesize (2),
.BR mmap (2),
.BR mremap (2),
.BR msync (2),
.BR shm_open (2)
|