Date: Thu, 14 Aug 1997 08:57:18 -0700 From: David Green-Seed <davidg@autodebit.com> To: "'root@acromail.ml.org'" <root@acromail.ml.org> Cc: "'freebsd-hackers@FreeBSD.ORG'" <freebsd-hackers@FreeBSD.ORG> Subject: RE: A small buffer question.. Message-ID: <c=US%a=_%p=ADS%l=ADSDEVELOP-970814155718Z-4433@adsdevelop.autodebit.com>
next in thread | raw e-mail | index | archive | help
0000-Administrator stands accused of saying: > > If the low level write() call is used to write to a data file then unlike > fwrite() where you must do an fflush to make sure that info is on disk I > am assuming that some type of flush is not necessary (can someone fill me > in on how to insure when using write() and read() calls that the data > actually gets to the disk), more importantly though if I open a socket and > then use a connect call to connect to a remote system and use write() to > write a block of data, is that block of data sent entirely as soon as > possible You may also want to check out fsync(2), fdatasync(2) and sync(2). Dave. _________________________ David Green-Seed davidg@autodebit.com Automated Debit Systems
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c=US%a=_%p=ADS%l=ADSDEVELOP-970814155718Z-4433>