[comp.sys.ibm.pc] stat and fstat on Dos 3.x

martyl@rocksvax.UUCP (Marty Leisner) (12/07/87)

I'm looking for reasonable clean source code which implements stat and fstat.

I'm looking for a stat which also include the cluster number of the file and
the device number to act as the inode number.  I know how to get the cluster
number if I start reading directories starting from root -- this just seems 
awfully brute force.  Any magic dos calls I don't know about.

I'm also looking for any way to do an fstat.

In addition, does anyone have a set of posix compatible directory scanning routines running on MS-DOS?  I may throw some together if I figure out how to do the
above things.  Is this of any use to anyone?

marty leisner
xerox corp.
leisner.henr@xerox.com

(please don't respond to Rocksvax as it is going away soon).

-- 
marty leisner
xerox corp
leisner.henr@xerox.com
martyl@rocksvax.uucp

bright@dataio.Data-IO.COM (Walter Bright) (12/10/87)

In article <367@rocksvax.UUCP> martyl@rocksvax.UUCP (Marty Leisner) writes:
<I'm looking for reasonable clean source code which implements stat and fstat.
<I'm also looking for any way to do an fstat.

Source code is available for most compiler runtime libraries, which includes
stat() and fstat().

egray@fthood.UUCP (12/11/87)

Datalight C version 3.12 has stat() and fstat() in their library.  The 
sources are provided as well.  Nice package... > $100

The version of TAR that was posted to comp.sources.unix a few day ago
has an MSDOS opendir, readdir, etc.

Emmet P. Gray				US Army, HQ III Corps & Fort Hood
...!ihnp4!uiucuxc!fthood!egray		Attn: AFZF-DE-ENV
					Directorate of Engineering & Housing
					Environmental Management Office
					Fort Hood, TX 76544-5057