From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 27 08:59:41 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64C3F106567A for ; Wed, 27 Feb 2008 08:59:41 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail35.syd.optusnet.com.au (mail35.syd.optusnet.com.au [211.29.133.51]) by mx1.freebsd.org (Postfix) with ESMTP id D6F6413C45E for ; Wed, 27 Feb 2008 08:59:35 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mail35.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m1R8xX1O024331 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 27 Feb 2008 19:59:33 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.1) with ESMTP id m1R8xWIi082636; Wed, 27 Feb 2008 19:59:32 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m1R8xWZ3082635; Wed, 27 Feb 2008 19:59:32 +1100 (EST) (envelope-from peter) Date: Wed, 27 Feb 2008 19:59:32 +1100 From: Peter Jeremy To: "Sanjeev Kumar.S" Message-ID: <20080227085932.GV83599@server.vk2pj.dyndns.org> References: <1204051337.47c45d89ea6eb@imp.free.fr> <284719.71279.qm@web57708.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fmEUq8M7S0s+Fl0V" Content-Disposition: inline In-Reply-To: <284719.71279.qm@web57708.mail.re3.yahoo.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.17 (2007-11-01) Cc: hackers@freebsd.org Subject: Re: synchronous freebsd print X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2008 08:59:41 -0000 --fmEUq8M7S0s+Fl0V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 27, 2008 at 12:08:28AM -0800, Sanjeev Kumar.S wrote: > I have a quick question, and I believe this will=20 > be a common requirement. This is a standard C question. =20 > I do a print of some data and then immediately=20 > in a next statement there is a crash. =2E.. > Is there anyway to get the complete print > before executing the next instruction. Look at fflush(3) --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --fmEUq8M7S0s+Fl0V Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHxSZ0/opHv/APuIcRAqpFAJ4mPDFCzNTjUvbaIsuEV1beVE53HQCgwjlc 3vDPrp9fvtc+jIXNfp/1oPs= =8kK9 -----END PGP SIGNATURE----- --fmEUq8M7S0s+Fl0V--