Skip to contentSkip to conversation

Problem with function 68h - Please Help

DISCUSSION Alain 1 participant 1 message Jan 12, 2005

lore
Share & tools
lore

Alain

author
#0 lore raw

I sent this to FreeDOS kernel list but got no answer. It is probabli more related do Dosemu and the redirector:

Is there a known problem / fix for int21 function 68h ??

I am getting an error return under Dosemu 1.2.2 + FreeDOS kernel 2035 in a CODEBASE function file4lowFlush()

The code is (OpenWatcom 1.3, 386 mode):
dosFlush.h.ah = 0x68 ;
dosFlush.x.bx = (unsigned int)file->hand ;
intdos( &dosFlush, &dosFlush ) ;
if ( dosFlush.x.cflag != 0 )

     ...

From RBIL
--------D-2168-------------------------------
INT 21 - DOS 3.3+ - "FFLUSH" - COMMIT FILE
AH = 68h
BX = file handle
Return: CF clear if successful
all data still in DOS disk buffers is written to disk
immediately,
and the file's directory entry is updated
CF set on error
AX = error code (see #01680 at AH=59h/BX=0000h)
SeeAlso: AX=5D01h,AH=6Ah,INT 2F/AX=1107h
-----------------------------------------

Alain