delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/03/20/10:41:17

Message-Id: <m0tzPrb-000GOKC@gwar.ardi.com>
Date: Wed, 20 Mar 96 08:31 MST
From: mat AT ardi DOT com (Mat Hostetter)
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Cc: djgpp-workers AT delorie DOT com
Subject: Re: stat lies under NT (was: gdb info)
In-Reply-To: <Pine.SUN.3.91.960320113347.22801A-100000@is>
References: <m0tz7Vi-000GPWC AT gwar DOT ardi DOT com>
<Pine DOT SUN DOT 3 DOT 91 DOT 960320113347 DOT 22801A-100000 AT is>

>>>>> "Eli" == Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> writes:

    Eli> Attached.  Please note that I didn't have too much time to
    Eli> test it, so take it with a grain of salt.  If anybody out
    Eli> there has access to Win95, OS/2, network drives of any kind
    Eli> and other wierdnesses, please apply this patch and tell me
    Eli> how does it work.  The best way to test it is to compile
    Eli> stat.c from the library sources with -DTEST and use the
    Eli> program that this will generate.

It seems to work under NT.  Here's a log from running it under WinNT.
`badfile' does not exist, but `stat' does.  Our Win95 machine is out
of the office right now so I can't test it there.

-Mat


Microsoft(R) Windows NT(TM)
(C) Copyright 1985-1995 Microsoft Corp.

C:\EXECUTOR.9Q5>cd \tmp

C:\tmp>.\stat.exe 0 badfile
Microsoft(R) Windows NT DOS
(C)Copyright Microsoft Corp 1990-1993.
DOS 5.0 (Microsoft MS-DOS)
badfile: lossage : No such file or directory (ENOENT)
Everything checks out OK

C:\tmp>.\stat.exe 0 stat
DOS 5.0 (Microsoft MS-DOS)
stat: 2  65537 755 1 42 103430 827309636 Wed Mar 20 08:13:56 1996
Cannot find SDA entry which corresponds to pathname (bad SDA pointer?)
Failed to get starting cluster number; inode defaults to hashing
(if no other messages were printed, then this is either an empty
file on a local disk drive, or a file on a networked drive, or
you run under some kind of DOS clone)

- Raw text -


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