Mail Archives: djgpp-workers/2000/01/13/12:27:12
On Thu, 13 Jan 2000, Laurynas Biveinis wrote:
> > You should at least check for the obvious errors (invalid file handle,
>
> Is there any library function for this?
I don't think so. Most handle-based functions call DOS, and if the
handle is invalid, DOS will return an error code.
> I've only found static
> function is_used_fd() in fcntl.c. It uses int 0x21, function 0x44
> (ioctl - get device information). If this is the way to go, I make
> that function global.
Probably a good idea.
> Hmm, I've never dealt with FSEXT before. Will try.
It's easy. Look at _open and _read and follow the lead...
- Raw text -