68ead3236f
Submitted by: Akira Ikeuchi <a_ikeuchi@mic.mitsumi.co.jp>
84 lines
2.9 KiB
Groff
84 lines
2.9 KiB
Groff
.\" Copyright (c) 1983, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the University of
|
|
.\" California, Berkeley and its contributors.
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
.\" SUCH DAMAGE.
|
|
.\"
|
|
.\" @(#)fsync.2 8.1 (Berkeley) 6/4/93
|
|
.\" %FreeBSD: src/lib/libc/sys/fsync.2,v 1.18 2002/12/19 09:40:24 ru Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.Dd June 4, 1993
|
|
.Dt FSYNC 2
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm fsync
|
|
.Nd "¥Õ¥¡¥¤¥ë¤ËÊѹ¹¤òƱ´ü¤¹¤ë"
|
|
.Sh ¥é¥¤¥Ö¥é¥ê
|
|
.Lb libc
|
|
.Sh ½ñ¼°
|
|
.In unistd.h
|
|
.Ft int
|
|
.Fn fsync "int fd"
|
|
.Sh ²òÀâ
|
|
.Fn fsync
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ë¤è¤Ã¤Æ¡¢
|
|
.Fa fd
|
|
¤Î½¤Àµ¤µ¤ì¤¿¤¹¤Ù¤Æ¤Î¥Ç¡¼¥¿¤È°À¤¬±Ê³Ū¤Ê¥¹¥È¥ì¡¼¥¸¥Ç¥Ð¥¤¥¹¤Ë°ÜÆ°¤µ¤ì¤Þ¤¹¡£
|
|
¤³¤ì¤Ë¤è¤Ã¤Æ¡¢Âбþ¤¹¤ë¥Õ¥¡¥¤¥ë¤Ë´Ø¤¹¤ë¥Ð¥Ã¥Õ¥¡¤Î¤¹¤Ù¤Æ¤Î
|
|
¥á¥â¥ê¾å¤Î¥³¥Ô¡¼¤Ç¡¢½¤Àµ¤µ¤ì¤¿Êª¤¬¥Ç¥£¥¹¥¯¤Ë½ñ¤¹þ¤Þ¤ì¤ë·ë²Ì¤Ë¤Ê¤ë¤Î¤¬
|
|
ÉáÄ̤Ǥ¹¡£
|
|
.Pp
|
|
.Fn fsync
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢¥Õ¥¡¥¤¥ë¤¬´ûÃΤξõÂ֤ˤ¢¤ë¤³¤È¤òÍ׵᤹¤ë¥×¥í¥°¥é¥à¤Ë¤è¤Ã¤Æ
|
|
»ÈÍѤµ¤ì¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
|
|
¤¿¤È¤¨¤Ð¡¢´Êñ¤Ê¥È¥é¥ó¥¶¥¯¥·¥ç¥óµ¡Ç½¤Î¹½ÃۤǤ¹¡£
|
|
.Sh Ìá¤êÃÍ
|
|
.Rv -std fsync
|
|
.Sh ¥¨¥é¡¼
|
|
.Fn fsync
|
|
¤Ï¼¡¤Î¾ì¹ç¤Ë¼ºÇÔ¤·¤Þ¤¹:
|
|
.Bl -tag -width Er
|
|
.It Bq Er EBADF
|
|
.Fa fd
|
|
°ú¿ô¤¬Í¸ú¤Êµ½Ò»Ò¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
|
|
.It Bq Er EINVAL
|
|
.Fa fd
|
|
°ú¿ô¤¬¥Õ¥¡¥¤¥ë¤Ç¤Ï¤Ê¤¯¥½¥±¥Ã¥È¤ò»²¾È¤·¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er EIO
|
|
¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ËÆɤ߽ñ¤¤·¤Æ¤¤¤ë´Ö¤ËÆþ½ÐÎÏ¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£
|
|
.El
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr sync 2 ,
|
|
.Xr syncer 4 ,
|
|
.Xr sync 8
|
|
.Sh Îò»Ë
|
|
.Fn fsync
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï
|
|
.Bx 4.2
|
|
¤ÇÅо줷¤Þ¤·¤¿¡£
|