File: mincore.2

package info (click to toggle)
manpages-ja 0.5.0.0.20050315-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 18,620 kB
  • ctags: 4
  • sloc: sh: 12,675; perl: 157; makefile: 106
file content (149 lines) | stat: -rw-r--r-- 4,433 bytes parent folder | download
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" Copyright (C) 2001 Bert Hubert <ahu@ds9a.nl>
.\"
.\" 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.
.\"
.\" Created Sun Jun 3 17:23:32 2001 by bert hubert <ahu@ds9a.nl>
.\" Slightly adapted, following comments by Hugh Dickins, aeb, 2001-06-04.
.\" Modified, 20 May 2003, Michael Kerrisk <mtk-manpages@gmx.net>
.\" Modified, 30 Apr 2004, Michael Kerrisk <mtk-manpages@gmx.net>
.\"
.\" Japanese Version Copyright (c) 2001-2004 Yuichi SATO
.\"         all rights reserved.
.\" Translated Sun Jul  8 21:09:35 JST 2001
.\"         by Yuichi SATO <ysato@h4.dion.ne.jp>
.\" Updated & Modified Sat Jul 26 13:54:03 JST 2003
.\"         by Yuichi SATO <ysato444@yahoo.co.jp>
.\" Updated & Modified Fri Dec 31 05:59:40 JST 2004 by Yuichi SATO
.\"
.\"WORD:	least significant bit	Dz̥ӥå
.\"
.TH MINCORE 2 2004-04-30 "Linux 2.6.5" "Linux Programmer's Manual"
.SH ̾
mincore \- ڡˤ뤫ݤξ
.SH 
.B #include <unistd.h>
.br
.B #include <sys/mman.h>
.sp
.BI "int mincore(void *" start ", size_t " length ", unsigned char *" vec );
.SH 
.B mincore
ؿϡեΤɤΥڡˤꡢ
ǥʤɤळȤǤ뤫ɽ׵᤹롣
ͥ
.I start
ɥ쥹ʹߤ
.I length
ХȤ˴ؤǡ󶡤롣
֤Ȥͥ
.I vec
Х롣
ХȤκDz̥ӥåȤϡΥڡˤ뤫ݤ򼨤
(¾ΥӥåȤ̤ǤꡢѤ뤫ΤʤΤͽ󤵤Ƥ)
󡢤ϥʥåץåȤǤʤ - 
˥åʤڡϡ
Ǥդλǥ뤳ȤФ뤳Ȥǽǡ
θƤӽФ֤ˤ
.I vec
Ƥ˼Ƥ뤫Τʤ

.B mincore
뤿ˤϡ
.I start
ڡˤʤФʤʤ
Ǥᤤڡؤ褦
.I start
ͤݤΤϸƤӽФ¦ǤǤ롣
.I length
ѥ᡼ϥڡܿǤɬפϤʤ

.I vec
 (length+PAGE_SIZE-1) / PAGE_SIZE ХȤǼΤ
ʬ礭ǤʤФʤʤ
ڡ
.BR getpagesize (2)

.SH ֤
.B mincore
 0 ֤
顼ξ \-1 ֤ơ
.I errno
Ŭڤͤꤹ롣
.SH 顼
.B EAGAIN
ͥ뤬Ū˥꥽Ȥ̤Ƥ롣
.TP
.B EFAULT
.I vec
̵ʥɥ쥹ؤƤ롣
.TP
.B EINVAL
.I start
ڡܿǤʤ
ޤ
.I length
ͤǤʤ
.TP
.B ENOMEM
.I start

.I start
+
.I length
δ֤˥ޥåפƤʤꡢޤϥեΰǤϤʤ꤬ä

.SH Х
 (Linux 2.6.5) ˻ޤǡ
.B mincore
 MAP_PRIVATE ޥåԥ󥰤ˤĤƤ֤ʤ

.\" Linux Ǥ (2.6.5 θߤ˻ޤ)
.\" .B mincore
.\"  MAP_PRIVATE ޥåԥ󥰤ˤĤƤ֤ʤ
.\" MAP_PRIVATE եޥåԥ󥰤ˤĤơ
.\" .B mincore
.\" Ͻ񤭹߻ԡ (copy on write) Ƥ
.\" 줿ץΥץ饤١ȥڡ֤ΤǤϤʤ
.\" եڡ¸ߤ뤫ݤ֤
.\" .I /dev/zero
.\"  MAP_PRIVATE ޥåԥ󥰤ˤĤơ
.\" .B mincore
.\" Ͼ˥ڡ¸ߤʤȤ֤
.\" MAP_PRIVATE, MAP_ANONYMOUS ޥåԥ󥰤ˤĤơ
.\" .B mincore
.\" Ͼ
.\" .B ENOMEM
.\" ǼԤ롣
.SH 
.B mincore
 POSIX  Single Unix Specification ΰȤƤо줷ʤ
.SH 
mincore() ؿ 4.4BSD ǽо줷
.SH 
Linux 2.3.99pre1  glibc 2.2 Ѳǽ
.SH Ϣ
.BR getpagesize (2),
.BR mlock (2),
.BR mmap (2)