I would suppose that by walking SysVars, (well DOS actually has this 
information) by looking at offset 20h in the System File Table, you can get 
the filename in FCB format, for 8.3 filenames prior to DOS 7.x (LFN)...Int 
21h/60h can get the canonicalized filename

I think that would be the best bet.

-T
----- Original Message ----- 
From: "Blair Campbell" <[EMAIL PROTECTED]>
To: "FreeDOS Devel" <Freedos-devel@lists.sourceforge.net>
Sent: Sunday, November 05, 2006 11:42 PM
Subject: [Freedos-devel] Int 21/AX=71A6h


> How hard would it be for FreeDOS to support Int 21/AX=71A6h?  (Get
> file information from handle)
>
> This would be very beneficial because it allows an easy way to
> implement a complete fstat function for C programs.  In most clibs,
> the fstat function is usually  incomplete, filling in only as many
> fields as possible using the usual dos interrupts, but in DJGPP, to
> obtain as much unix-compatibility as possible, it is forced to use
> undocumented and difficult tricks to get the filename associated with
> the handle, only then filling in the appropriate fields.
>
> DOSLFN does not currently support this function, and long filename
> support is not really a prerequisite.
>
> -- 
> Fall is my favorite season in Los Angeles, watching the birds change
> color and fall from the trees.
>   David Letterman (1947 - )
>
> See ya
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job 
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Freedos-devel mailing list
> Freedos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-devel
> 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to