Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!bloom-beacon!athena.mit.edu!eichin From: eichin@athena.mit.edu (Mark W. Eichin) Newsgroups: comp.unix.aux Subject: Re: fprintf() weirdness? Summary: fprintf/fdopen are probably broken... Keywords: portability fprintf core Message-ID: <8548@bloom-beacon.MIT.EDU> Date: 22 Dec 88 06:00:11 GMT References: <8457@bloom-beacon.MIT.EDU> Sender: daemon@bloom-beacon.MIT.EDU Reply-To: eichin@athena.mit.edu (Mark W. Eichin) Organization: Massachusetts Institute of Technology Lines: 10 Thanks to Carl Smith for the following suggestion: >>Try attaching a buffer to it with setbuf or setvbuf after the fdopen >>but before the fprintf. Adding a setbuf(sfo,NULL); after the sfo=fdopen(s,"w"); solved the problem. If we ever get sources to libc maybe I can debug the problem, but at least I can now read my email from the Mac. Progress... Mark Eichin SIPB Member & Project Athena ``Watchmaker''