1 .\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
8 .\" The GNU General Public License's references to "object code"
9 .\" and "executables" are to be interpreted as the output of any
10 .\" document formatting or typesetting system, including
11 .\" intermediate and printed output.
13 .\" This manual is distributed in the hope that it will be useful,
14 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 .\" GNU General Public License for more details.
18 .\" You should have received a copy of the GNU General Public
19 .\" License along with this manual; if not, write to the Free
20 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
23 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
24 .\" all rights reserved.
25 .\" Translated Sun Jul 4 17:20:13 JST 2004
26 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
28 .TH AIO_FSYNC 3 2003-11-14 "" "Linux Programmer's Manual"
31 .\"O aio_fsync \- asynchronous file synchronization
32 aio_fsync \- ÈóƱ´ü¥Õ¥¡¥¤¥ë¤òƱ´ü¤µ¤»¤ë
37 .BI "int aio_fsync(int " op ", struct aiocb *" aiocbp );
39 .\"O Link with \fI\-lrt\fP.
40 \fI\-lrt\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
45 .\"O function does a sync on all outstanding asynchronous I/O operations
47 .\"O .IR aiocbp\->aio_fildes .
50 .I aiocbp\->aio_fildes
51 ¤Ç´ØÏ¢ÉÕ¤±¤é¤ì¤Æ¤¤¤ë¤Þ¤À´°Î»¤·¤Æ¤¤¤Ê¤¤Á´¤Æ¤ÎÈóƱ´ü I/O Áàºî¤òƱ´ü¤µ¤»¤ë¡£
53 .\"O More precisely, if
57 .\"O then all currently queued I/O operations shall be
58 .\"O completed as if by a call of
64 .\"O this call is the asynchronous analog of
65 .\"O .BR fdatasync (2).
70 ¤Î¾ì¹ç¡¢¸½ºß¥¥å¡¼¤ËÆþ¤ì¤é¤ì¤Æ¤¤¤ëÁ´¤Æ¤Î I/O Áàºî¤Ï¡¢
72 ¤¬¸Æ¤Ð¤ì¤¿¤«¤Î¤è¤¦¤Ë´°Î»¤µ¤ì¤ë¤À¤í¤¦¡£
77 ¤Î¾ì¹ç¡¢¤³¤Î¸Æ¤Ó½Ð¤·¤Ï
80 .\"O Note that this is a request only \(em this call does not wait
81 .\"O for I/O completion.
82 ¤³¤Î´Ø¿ô¤Ï¥ê¥¯¥¨¥¹¥È¤ò¹Ô¤¦¤À¤±¤Ç¤¢¤ëÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È \(em
83 ¤³¤Î¸Æ¤Ó½Ð¤·¤Ï I/O ¤Î´°Î»¤òÂÔ¤¿¤Ê¤¤¡£
87 .\"O the only field in the structure pointed to by
89 .\"O that is used by this call is the
91 .\"O field (a \fIstruct sigevent\fP) that indicates the desired type of
92 .\"O asynchronous notification at completion.
94 ¤Ç»Ø¤µ¤ì¤ë¹½Â¤ÂΤΥե£¡¼¥ë¥É¤Î¤¦¤Á¡¢¤³¤Î¸Æ¤Ó½Ð¤·¤Ç
98 ¥Õ¥£¡¼¥ë¥É (\fIstruct sigevent\fP) ¤Î¤ß¤Ç¤¢¤ë¡£
99 ¤³¤Î¥Õ¥£¡¼¥ë¥É¤Ï¡¢´°Î»»þ¤ÎÈóƱ´üÄÌÃΤ˻ÈÍѤ·¤¿¤¤¥¿¥¤¥×¤ò¼¨¤¹¡£
100 .\"O All other fields are ignored.
101 ¤½¤Î¾¤Î¥Õ¥£¡¼¥ë¥É¤Ï̵»ë¤µ¤ì¤ë¡£
102 .\"O .SH "RETURN VALUE"
104 .\"O On success (the sync request was successfully queued)
105 .\"O this function returns 0.
106 .\"O On error \-1 is returned, and
108 .\"O is set appropriately.
109 À®¸ù¤·¤¿¾ì¹ç (Ʊ´ü¥ê¥¯¥¨¥¹¥È¤ò¥¥å¡¼¤ËÆþ¤ì¤ë¤Î¤ËÀ®¸ù¤·¤¿¾ì¹ç)¡¢
110 ¤³¤Î´Ø¿ô¤Ï 0 ¤òÊÖ¤¹¡£
111 ¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤¬ÊÖ¤µ¤ì¡¢
118 .\"O Out of resources.
123 .\"O is not a valid file descriptor open for writing.
125 ¤¬½ñ¤¹þ¤ß¤Î¤¿¤á¤Ë¥ª¡¼¥×¥ó¤µ¤ì¤¿Í¸ú¤Ê¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ç¤Ï¤Ê¤¤¡£
128 .\"O No synchronized I/O for this file is supported, or
134 ¤³¤Î¥Õ¥¡¥¤¥ë¤ËÂФ¹¤ëƱ´ü I/O ¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
142 .\"O .SH "CONFORMING TO"