delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/01/13/12:27:12

Date: Thu, 13 Jan 2000 19:22:58 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Laurynas Biveinis <lauras AT softhome DOT net>
cc: djgpp-workers AT delorie DOT com
Subject: Re: fchmod() / fchown() ?
In-Reply-To: <387DFC16.C3AEDAC8@softhome.net>
Message-ID: <Pine.SUN.3.91.1000113192126.13602A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019