🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #4154

Re: Need help with unbuffered writes

#4154
From: Otto J. Makela
Date: Mon, 07 Jan 1991 06:12
17 lines
1511 bytes
In article <2498@sparko.gwu.edu> viraf@seas.gwu.edu (Viraf Bankwalla) writes:
     I've noticed that although I may do a fflush (buffered I/O),
     or write, or _dos_write, the data is not always written out
     to file.

     On speaking with Miscrsoft, they informed me that the write
     may be committed by using INT 0x21, Function 0x68, on DOS 3.3
     or later.  Is there a way around this for earlier versions of
     dos, without opening and closing the file each time.

Yes, the classic solution for DOS is to first DUP the file handle code,
and then CLOSE the new handle.
--
   /* * * Otto J. Makela <otto@jyu.fi> * * * * * * * * * * * * * * * * * * */
  /* Phone: +358 41 613 847, BBS: +358 41 211 562 (CCITT, Bell 24/12/300) */
 /* Mail: Kauppakatu 1 B 18, SF-40100 Jyvaskyla, Finland, EUROPE         */
/* * * Computers Rule 01001111 01001011 * * * * * * * * * * * * * * * * */
Technical Details
Message-ID: <OTTO.91Jan7071251@tukki.jyu.fi>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!eru!hagbard!sunic!news.funet.fi!tukki.jyu.fi!jyu.fi!otto
References: <2498@sparko.gwu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!eru!hagbard!sunic!news.funet.fi!tukki.jyu.fi!jyu.fi!otto
From: otto@tukki.jyu.fi (Otto J. Makela)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Need help with unbuffered writes
Message-ID: <OTTO.91Jan7071251@tukki.jyu.fi>
Date: 7 Jan 91 06:12:51 GMT
References: <2498@sparko.gwu.edu>
Sender: news@tukki.jyu.fi (News articles)
Organization: Turing Police, Criminal AI section
Lines: 17
In-Reply-To: viraf@seas.gwu.edu's message of 5 Jan 91 00:03:23 GMT
Nntp-Posting-Host: jyu.fi