From owner-freebsd-hackers Thu Jan 11 18:29:24 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.hiwaay.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id 6D83A37B401 for ; Thu, 11 Jan 2001 18:29:07 -0800 (PST) Received: from bonsai.knology.net (user-24-214-88-8.knology.net [24.214.88.8]) by mail.hiwaay.net (8.11.0/8.11.0) with ESMTP id f0C2T1o09487 for ; Thu, 11 Jan 2001 20:29:01 -0600 (CST) Received: (from steve@localhost) by bonsai.knology.net (8.11.1/8.11.1) id f0C2SvK60780 for hackers@freebsd.org; Thu, 11 Jan 2001 20:28:57 -0600 (CST) (envelope-from steve) Date: Thu, 11 Jan 2001 20:28:56 -0600 From: Steve Price To: hackers@freebsd.org Subject: synchronous IO Message-ID: <20010111202855.Y36120@bonsai.knology.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD 4.2-STABLE i386 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG What are the secrets to doing synchronous IO with FreeBSD? I have this application that I'm writing where I need to play a WAV file but I need to make sure all the bits are sent on there way before I move on. The WAV file is being played through a controller that I have to toggle some bits via a serial port to get the WAV file through. Without doing a sleep(3) and praying that IO is complete is there another way? I'm pretty sure what I need is the equivalent of O_SYNC in SVR4, but I think I'm drain-bamaged (sic) because I haven't found the equivalent in BSD. Thanks in advance. -steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message