home *** CD-ROM | disk | FTP | other *** search
- #if 0
- From: Miles Bradley <miles@zortech.com>
- Subject: Reported bug in io.asm
- Date: Thu, 18 Apr 91 10:14:34 EDT
- Status: Fixed in 3.0
- #endif
-
- opens:
- // Shared mode file opening fixup
- // Replace line way below with three below - Taken from gotfile below
- mov AL,-2[BP] ;AL = rwmode (0,1,2)
- and AL,0F3h ;clear reserved bits
- mov AH,3Dh ;open file
-
- // mov AX,3D00h ;see if file exists
- call _bdos
- jc nofile ;maybe doesn't exist
- mov BX,AX ;opened file checking existance,
- bdos 3Eh ; now close it
- mov BX,-2[BP] ;check for O_EXCL && O_CREAT
- and BX,O_EXCL+O_CREAT
- cmp BX,O_EXCL+O_CREAT
- jne gotfile ;all's OK - continue
- mov AX,EEXIST ;return EEXIST error
-
-