File: mincore.2

package info (click to toggle)
manpages-ja 0.4.0.0.20020315-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 14,808 kB
  • ctags: 4
  • sloc: sh: 9,595; perl: 157; makefile: 62
file content (128 lines) | stat: -rw-r--r-- 3,563 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
.\" 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.
.\"
.\" Japanese Version Copyright (c) 2001 Yuichi SATO
.\"         all rights reserved.
.\" Translated Sun Jul  8 21:09:35 JST 2001
.\"         by Yuichi SATO <ysato@h4.dion.ne.jp>
.\"
.\"WORD:	least significant bit	Dz̥ӥå
.\"
.TH MINCORE 2 2001-06-03 "Linux 2.4.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̥ӥåȤϡΥڡˤ뤫ݤ򼨤

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

.I vec
 length/PAGE_SIZE ХȤ褦˽ʬ礭ɬפ롣
ڡ
.BR getpagesize (2)

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

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

.SH Х
.B mincore
ϥХǤϤʤƥӥå֤٤Ǥ롣
Linux 2.4.5 Ǥϡե˽񤭽ФƤʤڡ
ˤ뤫ɤˤĤƾ뤳ȤԲǽǤ롣
ؤȡŬ
.B mmap(2)
֤ΰ
.B mincore
ƤӽФƤⵡǽerrno  ENOMEM ꤵ롣
ڡǥåƤʤ¤ꡢ
ڡ桼֤ãȤˤ
.I vec
Ƥϴ˼Ƥ뤫⤷ʤ

.SH 
.B mincore
 POSIX  Single Unix Specification ΰȤƤо줷ʤ
.SH 
mincore() ؿ 4.4BSD ǽо줷
.SH 
Linux 2.3.99pre1  glibc 2.2 Ѳǽ
.SH Ϣ
.BR getpagesize (2),
.BR mmap (2)