www.delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | Jim Michaels <jmichae3 AT yahoo DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Documentation error |
Date: | Mon, 23 Mar 2009 13:14:14 -0700 (PDT) |
Organization: | http://groups.google.com |
Lines: | 51 |
Message-ID: | <a82db3f6-b6ec-4855-8749-50582406ac36@n7g2000prc.googlegroups.com> |
References: | <ca683ba1-e029-4556-ae77-37e6cb3f5658 AT p6g2000pre DOT googlegroups DOT com> |
<gq7rb5$glk$1 AT aioe DOT org> | |
NNTP-Posting-Host: | 76.115.70.155 |
Mime-Version: | 1.0 |
X-Trace: | posting.google.com 1237839254 31415 127.0.0.1 (23 Mar 2009 20:14:14 GMT) |
X-Complaints-To: | groups-abuse AT google DOT com |
NNTP-Posting-Date: | Mon, 23 Mar 2009 20:14:14 +0000 (UTC) |
Complaints-To: | groups-abuse AT google DOT com |
Injection-Info: | n7g2000prc.googlegroups.com; posting-host=76.115.70.155; |
posting-account=05hOMwoAAAB6R8xtiQKzEljSMzgOhVF1 | |
User-Agent: | G2/1.0 |
X-HTTP-UserAgent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) |
Gecko/2009021910 Firefox/3.0.7 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) | |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Mar 23, 3:24=A0am, "Rod Pemberton" <do_not_h DOT DOT DOT AT nohavenot DOT cmm> wrote: > "Jim Michaels" <jmich DOT DOT DOT AT yahoo DOT com> wrote in message > > news:ca683ba1-e029-4556-ae77-37e6cb3f5658 AT p6g2000pre DOT googlegroups DOT com... > > > but [setdisk] is not returning the correct drive number. > > Since it's just a wrapper around Int 0x21, AH=3D0Eh, I'd say it's returni= ng > the correct values for the DOS function used. > > > [setdisk] does a whammy on you and returns a 1-based drive > > number instead of the zero-based number it took. =A0This is not the > > documentation given in djgpp. > > In libc.info under setdisk()'s "Return Value": > > =A0 "The highest drive actually present that the system can reference." > > AFAICT, the DJGPP documentation doesn't say anything about a either a zer= o > or a one based drive number being returned... > > As you mentioned, it'd be nice to know the return value is one based, but= I > think the documentation could use even more clarification. =A0The quoted > statement above from DJGPP's libc.info document isn't correct in the leas= t. > According to the Int 0x21, AH=3D0Eh RBIL information (link below), LASTDR= IVE=3D > could set a drive number that is larger than the "highest drive actually > present". =A0E.g., LASTDRIVE=3DZ which should return 26, but only A throu= gh F > are present in someone's system. =A0Or, if only a few drives are present,= it > might return five (5) which is also larger than the number of drives > present. > > http://www.delorie.com/djgpp/doc/rbinter/id/81/25.html > > Also, I think one could make a case for DJGPP that setdisk() should retur= n > the drive number that was set by setdisk(), or an error if the drive isn'= t > present. > > Rod Pemberton interesting. different sets of documentation give different things. the one I was referring to was at http://www.delorie.com/djgpp/doc/libc/ Jim Michaels
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |