File: posix_fadvise.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 (120 lines) | stat: -rw-r--r-- 4,633 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
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" Copyright 2003 Abhijit Menon-Sen <ams@wiw.org>
.\" 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.
.\"
.\" Japanese Version Copyright (c) 2004 Yuichi SATO
.\"         all rights reserved.
.\" Translated Sun Jun 20 16:23:17 JST 2004
.\"         by Yuichi SATO <ysato444@yahoo.co.jp>
.\"
.TH POSIX_FADVISE 2 "14 Feb 2003" "Linux 2.5.60" "Linux Programmer's Manual"
.SH ̾
posix_fadvise \- եǡΥѥ򤢤餫
.SH 
.nf
.B #include <fcntl.h>
.sp
.BI "int posix_fadvise(int " fd ", off_t " offset ", off_t " len ", int " advice ");"
.fi
.SH 
ץϡΥѥǥեǡ
ջפ뤿 \fBposix_fadvise\fP ȤȤǤ롣
ˤꡢͥ뤬ŬڤʺŬ¹Ԥ뤳Ȥǽˤʤ롣

\fIadvice\fP   \fIfd\fP ȤƤե
\fIoffset\fP Ϥޤ \fIlen\fP ХȤϰ
(\fIlen\fP  0 ξϥեνޤ) 
(ɬ¸ߤʤ) ΰŬѤ롣
ɥХϵ̳ŤǤϤʤ
ɥХñ˥ץꥱΤ˲ǽǤ롣

\fIadvice\fP ˵ͤˤϡʲΤΤޤޤ:
.TP
.B POSIX_FADV_NORMAL
ꤵ줿ǡΥѥؼ륢ɥХ
ץꥱ󤬲äƤʤȤ򼨤
ץ󤵤줿ե˥ɥХꤵʤ硢
줬ǥեȤDzꤵ롣
.TP
.B POSIX_FADV_SEQUENTIAL
ץꥱϻꤵ줿ǡ󥷥
(礭ʥեåȤ˾ʥեåȤΥǡɤ褦)
뤳ȤԤ롣
.TP
.B POSIX_FADV_RANDOM
ꤵ줿ǡʽ֤ǥ롣
.TP
.B POSIX_FADV_NOREUSE
ꤵ줿ǡ 1 ٤ʤ
.TP
.B POSIX_FADV_WILLNEED
ꤵ줿ǡ϶ᤤ襢롣
.TP
.B POSIX_FADV_DONTNEED
ꤵ줿ǡ϶ᤤ襢ʤ
.SH ֤
 0 ֤롣
Ԥ \-1 ֤졢\fIerrno\fP Ŭڤꤵ롣
.SH 顼
.TP
.B EBADF
\fIfd\fP ͭʥեǥץǤʤ
.TP
.B EINVAL
̵ͤ \fIadvice\fP ˻ꤵ줿
.TP
.B ESPIPE
ꤵ줿եǥץѥפޤ FIFO 򻲾ȤƤ
(ξ硢Linux ϼºݤˤ EINVAL ֤)
.SH 
Linux Ǥϡ\fBPOSIX_FADV_NORMAL\fP ϥХå󥰥ǥХ
ǥեȥɤ (readahead) ɥꤹ롣
\fBPOSIX_FADV_SEQUENTIAL\fP ϤΥ 2 ܤ
\fBPOSIX_FADV_RANDOM\fP ɤߤ̵ˤ롣
ѹϥեΤ˱ƶꤵ줿ΰΤߤ˱ƶ櫓ǤϤʤ
(ƱեФ¾Υץեϥɥϱƶʤ)

\fBPOSIX_FADV_WILLNEED\fP  \fBPOSIX_FADV_NOREUSE\fP ϡ
ɤڡå˻ΰΥ֥åʤɤ߹ߤ򳫻Ϥ롣
ɤ߹ޤǡ̤ϡVM ٤˰ͤäƥͥ뤬餹⤷ʤ
(ᥬХȤǤ̾ʬǤꡢ
¿ƤäΩʤ)

\fBPOSIX_FADV_DONTNEED\fP ϻꤵ줿ΰ˴Ϣդ줿
åڡ褦Ȥ롣
㤨С礭ʥե򥹥ȥ꡼ߥ󥰤ȤΩġ
ץϡѺѤߤΥå夵줿ǡ褦ˡ
Ū˥ͥ׵᤹뤫⤷ʤ
뤳Ȥˤꡢͭʥå夵줿ڡ
˴뤳ȤϤʤ

ޤ񤭽ФƤʤڡϱƶʤΤǡ
Υڡβݾڤ뤳Ȥ򥢥ץꥱ˾Ǥʤ顢
ǽ \fBfsync\fP ޤ \fBfdatasync\fP Ƥ֤٤Ǥ롣

.SH 
SUSv3 (Advanced Realtime Option), POSIX 1003.1-2003.
.I len
η POSIX 1003.1-2003 TC5 ˤ
size_t  off_t ѹ줿դ뤳ȡ
.SH Ϣ
.BR posix_fallocate "(2), " posix_madvise "(2)."