Re: OLD kernel BUG with volume label? (MS works, 2026..2027rc not)

"Andreas K. Foerster" <[email protected]> Tue, 5 Nov 2002 07:23:16 +0100
Newsgroups gmane.os.freedos.devel
Message-ID <[email protected]>
On Mon, Nov 04, 2002 at 07:20:31PM -0500, Bart Oldeman wrote:

> > LWINFO.pas assumes the error codes:
> > 18 - no label
> > 3  - drive not found
> > 152 - drive not ready
> > else - unknown error
> 
> The problem is that Ralf Brown's interrupt list isn't clear on this. It
> just says that "findfirst" can return 2 (file not found), 3 (path not
> found) or 18 (no more files). FreeDOS returns "2", which is a reasonable
> choice I think.

The original TurboPascal 6.0 Book sais
FindFirst can return 0 - no Error, 2 - Directory not found, 18 - no
more files.

"Directory not found" wouldn't make any sense, because I just search in
the root directory.

Another Book I have calls Error code 2 "file or directory not found".
Well, that would make sense, but still it's incompatible with MS-DOS'
behaviour.

> Can somebody point to better documentation about which error code should
> be returned in which situation?
> 
> When SHOULD findfirst return error 2?

I think, when a wrong Path is used for searching. But I didn't find
that in a book.

-- 
Tschuess
	Andreas