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
|
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" Copyright (C) 1996 Andries Brouwer (aeb@cwi.nl)
.\" Copyright (C) 1996 Markus Kuhn.
.\"
.\" [This version merged from two independently written pages - aeb]
.\"
.\" 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.
.\"
.\" 1996-04-12 Andries Brouwer <aeb@cwi.nl>
.\" 1996-04-13 Markus Kuhn <mskuhn@cip.informatik.uni-erlangen.de>
.\"
.\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
.\" all rights reserved.
.\" Translated Sat Feb 22 20:10:07 JST 1997
.\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
.\" Modified Mon May 5 19:46:46 JST 1997
.\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
.\" Updated & Modified Wed May 19 03:24:56 JST 2004
.\" by Yuichi SATO <ysato444@yahoo.co.jp>
.\"
.\"WORD: core
.\"WORD: synchronize Ʊ
.\"WORD: buffer Хåե
.\"WORD: flush եå
.\"WORD: access time
.\"WORD: database ǡ١
.\"WORD: modification time
.\"WORD: inode inode
.\"WORD: descriptor ǥץ
.\"
.TH FDATASYNC 2 1996-04-13 "Linux 1.3.86" "Linux Programmer's Manual"
.SH ̾
fdatasync \- եΥΥǡǥΤΤƱ
.SH
.B #include <unistd.h>
.sp
.BI "int fdatasync(int " fd );
.SH
.B fdatasync
(ƥࡦ뤫) եƤΥǡХåե
ǥ˥եå (flush) 롣
.B fsync
˻Ƥ뤬Τ褦ʥǡʤ
ǡ١˥ꡢե˽褦
ץꥱϤФоʥǡ (㤨Хեΰ)
ߡ줬ϡɥǥʪŪ˳Ǽ뤳Ȥݾڤ
ˡ
.B fsync
ƤӽФԹʤȤˡ
.B fsync
ϾνԤʤ: ĤϿޤ줿ǡ
⤦Ĥ inode ν뤿ˡ郎ȥ饶
˴طʤС
.B fdatasync
Ѥ뤳Ȥɬפʥǥؤ inode ν߽
뤳ȤǤ롣
.SH ֤
0 ֤롣顼ξ \-1 ֤
.I errno
Ŭڤͤꤵ롣
.SH 顼
.TP
.B EBADF
.I fd
ߤΤ˥ץ줿ͭʥե롦ǥץǤϤʤ
.TP
.B EIO
Ʊδ֤˥顼ä
.TP
.BR EROFS ", " EINVAL
.I fd
ƱݡȤƤʤüʥեȤƤ롣
.SH Х
(Linux 2.2) ΤȤ
.B fdatasync
.BR fsync
.SH ͭ
.B fdatasync
Ѳǽ POSIX ƥǤϡ
<unistd.h> ˤ
.B _POSIX_SYNCHRONIZED_IO
0 礭ͤƤ
.RB ( sysconf (3)
Ȥ뤳)
.\" POSIX 1003.1-2001 Ǥϡͤ -1, 0, 200112L
.\" ɤ줫٤ȤƤ롣
.\" -1 ϻԲġ0 sysconf() ȤäƿҤͤȤ̣Ǥ롣
.\" glibc Ǥϡͤ 1 ȤƤ롣
.SH
POSIX1b ( POSIX.4)
.SH Ϣ
.BR fsync (2)
.br
B.O. Gallmeister, POSIX.4, O'Reilly, pp. 220-223 and 343.
|