X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: 048321887-0001 AT t-online DOT de Newsgroups: comp.os.msdos.djgpp Subject: Re: Adding 64-bit file support to DJGPP Date: 17 Jan 2006 21:41:56 -0800 Organization: http://groups.google.com Lines: 35 Message-ID: <1137562915.964676.222680@f14g2000cwb.googlegroups.com> References: <1137560452 DOT 398133 DOT 301490 AT g14g2000cwa DOT googlegroups DOT com> <200601180522 DOT k0I5MCVR031756 AT envy DOT delorie DOT com> NNTP-Posting-Host: 217.237.149.234 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1137562921 10471 127.0.0.1 (18 Jan 2006 05:42:01 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Wed, 18 Jan 2006 05:42:01 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1,gzip(gfe),gzip(gfe) X-HTTP-Via: HTTP/1.1 spcss25. (IBM-PROXY-WTE-US) Complaints-To: groups-abuse AT google DOT com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=217.237.149.234; posting-account=KHGrvw0AAAAB7y2Tr7w_-Ld-vCb6kcTM To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com DJ Delorie wrote: > DJGPP relies on MS-DOS's file api, and MS-DOS doesn't support 64 bit > operations. The LFN API in MS-DOS 7.0 and higher already uses 64-bit file operations in some functions, e.g. 714E/4Fh of Int 21h. Also, DOS is still evolving, so newer DOS versions provide functions that old versions lack. For example, this is the new 64-bit LSEEK function of Enhanced DR-DOS, which will also eventually be supported by FreeDOS: --------O-2142------------------------------- INT 21 - EDR-DOS 7.01.08+ - "Long LSEEK" - SET CURRENT 64-bit FILE POSITION AX = 7142h CL = origin of move 00h start of file 01h current file position 02h end of file BX = file handle DS:DX = pointer to (signed) 64-bit offset from origin of new position Return: CF clear if successful DS:DX unchanged, new 64-bit position from start of file at -> DS:DX CF set on error AX = error code (01h,06h) (see #01680 at AH=59h/BX=0000h) For the moment, I would like to put the question of API support in the OSes aside and concentrate on the implementation of 64-bit file support in DJGPP itself. Udo