Date: Thu, 13 Jan 2000 19:22:58 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Laurynas Biveinis cc: djgpp-workers AT delorie DOT com Subject: Re: fchmod() / fchown() ? In-Reply-To: <387DFC16.C3AEDAC8@softhome.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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...