̾??
fsync
—
?ե????????ѹ???Ʊ??????
Standard C Library (libc, -lc)
fsync
()
?????ƥॳ?????ˤ??äơ?
fd
?ν??????줿???٤ƤΥǡ?????°??????³Ū?ʥ??ȥ졼???ǥХ????˰?ư?????ޤ???
?????ˤ??äơ??б??????ե??????˴ؤ????Хåե??Τ??٤Ƥ?
?????????Υ??ԡ??ǡ????????줿ʪ???ǥ??????˽??ޤ??????̤ˤʤ??Τ?
???̤Ǥ???
fsync
()
?????ƥॳ?????ϡ??ե????뤬???Τξ??֤ˤ??뤳?Ȥ??᤹???ץ????????ˤ??ä?
???Ѥ?????ɬ?פ??????ޤ???
???Ȥ??С???ñ?ʥȥ???????????ǽ?ι??ۤǤ???
The fsync
() function returns the
value 0 if successful; otherwise the value -1 is returned and
the global variable errno is set to indicate the
error.
fsync
()
?ϼ??ξ????˼??Ԥ??ޤ?:
- [
EBADF
]
- fd
??????ͭ???ʵ??һҤǤϤ????ޤ?????
- [
EINVAL
]
- fd
???????ե??????ǤϤʤ??????åȤȤ??Ƥ??ޤ???
- [
EIO
]
- ?ե????륷???ƥ????ɤ߽??Ƥ????֤??????ϥ??顼??ȯ?????ޤ?????
fsync
() ?????ƥॳ??????
4.2BSD ???о줷?ޤ?????