From owner-freebsd-hackers Thu Aug 14 09:00:12 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id JAA25820 for hackers-outgoing; Thu, 14 Aug 1997 09:00:12 -0700 (PDT) Received: from adsdevelop.autodebit.com (adsdevelop.autodebit.com [204.50.245.10]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id JAA25815 for ; Thu, 14 Aug 1997 09:00:09 -0700 (PDT) Received: by adsdevelop.autodebit.com with Microsoft Exchange (IMC 4.0.837.3) id <01BCA890.143780B0@adsdevelop.autodebit.com>; Thu, 14 Aug 1997 08:57:22 -0700 Message-ID: From: David Green-Seed To: "'root@acromail.ml.org'" Cc: "'freebsd-hackers@FreeBSD.ORG'" Subject: RE: A small buffer question.. Date: Thu, 14 Aug 1997 08:57:18 -0700 X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.837.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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