OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man3 / posix_fallocate.3
1 .\" Copyright (c) 2006, Michael Kerrisk <mtk.manpages@gmail.com>
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" Japanese Version Copyright (c) 2006 Yuichi SATO
24 .\"         all rights reserved.
25 .\" Translated 2006-07-13, Yuichi SATO <ysato444@yahoo.co.jp>. LDP v2.29
26 .\" Updated 2010-04-11, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.24
27 .\"
28 .TH POSIX_FALLOCATE 3  2009-09-30 "GNU" "Linux Programmer's Manual"
29 .SH Ì¾Á°
30 posix_fallocate \- ¥Õ¥¡¥¤¥ë¤Î¥¹¥Ú¡¼¥¹¤ò³ÎÊݤ¹¤ë
31 .SH ½ñ¼°
32 .nf
33 .B #define _XOPEN_SOURCE 600
34 .B #include <fcntl.h>
35 .sp
36 .BI "int posix_fallocate(int " fd ", off_t " offset ", off_t " len );
37 .fi
38 .SH ÀâÌÀ
39 ´Ø¿ô
40 .BR posix_fallocate ()
41 ¤Ï¡¢¥Ç¥£¥¹¥¯¥ê¥×¥¿
42 .I fd
43 ¤Ç»²¾È¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æ¡¢¥Ç¥£¥¹¥¯¥¹¥Ú¡¼¥¹¤ò³Î¼Â¤Ë³ÎÊݤ¹¤ë¡£
44 ¥Ç¥£¥¹¥¯¥¹¥Ú¡¼¥¹¤Ï
45 .I offset
46 ¤«¤é»Ï¤Þ¤ë
47 .I len
48 ¥Ð¥¤¥È¤ÎÈϰϤΥХ¤¥È¤Ç¤¢¤ë¡£
49 .BR posix_fallocate ()
50 ¤Î¸Æ¤Ó½Ð¤·¤¬À®¸ù¤·¤¿¸å¡¢»ØÄꤵ¤ì¤¿ÈϰϤΥХ¤¥È¤ËÂФ¹¤ë½ñ¤­¹þ¤ß¤Ï¡¢
51 ¥Ç¥£¥¹¥¯¥¹¥Ú¡¼¥¹¤ÎÉÔ­¤Ç¼ºÇÔ¤·¤Ê¤¤¤³¤È¤¬Êݾڤµ¤ì¤ë¡£
52
53 ¥Õ¥¡¥¤¥ë¤Î¥µ¥¤¥º¤¬
54 .IR offset + len
55 ¤è¤ê¾®¤µ¤¤¾ì¹ç¡¢¥Õ¥¡¥¤¥ë¤Ï¤³¤Î¥µ¥¤¥º¤Ë¤Ê¤ë¤è¤¦¤Ë³ÈÂ礵¤ì¤ë¡£
56 ¤½¤ì°Ê³°¤Î¾ì¹ç¡¢¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤ÏÊѤï¤é¤Ê¤¤¡£
57 .SH ÊÖ¤êÃÍ
58 .BR posix_fallocate ()
59 ¤ÏÀ®¸ù¤·¤¿¾ì¹ç¡¢0 ¤òÊÖ¤¹¡£
60 ¼ºÇÔ¤·¤¿¾ì¹ç¡¢¥¨¥é¡¼ÈÖ¹æ¤òÊÖ¤¹¡£
61 .I errno
62 ¤¬ÀßÄꤵ¤ì¤Ê¤¤ÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È¡£
63 .SH ¥¨¥é¡¼
64 .TP
65 .B EBADF
66 .I fd
67 ¤¬Í­¸ú¤Ê¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ç¤Ê¤¤¡£
68 ¤Þ¤¿¤Ï½ñ¤­¹þ¤ßÍѤ˥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
69 .TP
70 .B EFBIG
71 .I offset+len
72 ¤¬ºÇÂç¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤òĶ¤¨¤Æ¤¤¤ë¡£
73 .TP
74 .B EINVAL
75 .I offset
76 ¤¬ 0 Ì¤Ëþ¤À¤Ã¤¿¤«¡¢
77 .I len
78 ¤¬ 0 °Ê²¼¤À¤Ã¤¿¡£
79 .TP
80 .B ENODEV
81 .I fd
82 ¤¬Ä̾ï¤Î¥Õ¥¡¥¤¥ë¤È¤·¤Æ»²¾È¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
83 .TP
84 .B ENOSPC
85 .I fd
86 ¤Ç»²¾È¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤¹¤ë¥Ç¥Ð¥¤¥¹¤Ë¡¢½½Ê¬¤Ê¥¹¥Ú¡¼¥¹¤¬»Ä¤Ã¤Æ¤¤¤Ê¤¤¡£
87 .TP
88 .B ESPIPE
89 .I fd
90 ¤¬¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Î¥Ñ¥¤¥×¤ò»²¾È¤·¤Æ¤¤¤ë¡£
91 .SH ¥Ð¡¼¥¸¥ç¥ó
92 .BR posix_fallocate ()
93 ¤Ï glibc 2.1.94 °Ê¹ß¤ÇÍøÍѲÄǽ¤Ç¤¢¤ë¡£
94 .SH ½àµò
95 POSIX.1-2001.
96
97 POSIX.1-2008 ¤Ç¤Ï¡¢
98 .I len
99 ¤¬ 0 ¤Î¾ì¹ç¡¢¤â¤·¤¯¤Ï
100 .I offset
101 ¤¬ 0 Ì¤Ëþ¤Î¾ì¹ç¡¢
102 .B EINVAL
103 ¥¨¥é¡¼¤òÊÖ¤¹¤â¤Î¤È¤µ¤ì¤Æ¤¤¤ë¡£
104 POSIX.1-2001 ¤Ç¤Ï¡¢
105 .I len
106 ¤¬ 0 Ì¤Ëþ¤Î¾ì¹ç¡¢¤â¤·¤¯¤Ï
107 .I offset
108 ¤¬ 0 Ì¤Ëþ¤Î¾ì¹ç¡¢
109 .B EINVAL
110 ¥¨¥é¡¼¤òÊÖ¤¹¤â¤Î¤È¤µ¤ì¤Æ¤¤¤ë¡£¤Þ¤¿¡¢
111 .I len
112 ¤¬ 0 ¤Î¾ì¹ç¡¢
113 .B EINVAL
114 ¥¨¥é¡¼¤òÊÖ¤·¤Æ¤â¤è¤¤¤È¤µ¤ì¤Æ¤¤¤ë¡£
115 .SH ´ØÏ¢¹àÌÜ
116 .BR fallocate (2),
117 .BR lseek (2),
118 .BR posix_fadvise (2),
119 .BR feature_test_macros (7)