07-21-07 06:18 PM
kenkahn wrote:
> On Jul 20, 9:27 pm, Eric Sosman <esos...@ieee-dot-org.invalid> wrote:
>
> The code in my original post is the exact code. Just stick it in a
> main, replace Path with ArgV[1], and do a simple gcc (v3.2.3) compile
>
> gcc -o freespace freespace.c
I'm not at a Solaris system at the moment, but I can
predict what the compiler will say about "the exact code"
from your first message: It will spew a bunch of error
messages and refuse to compile. There are no #include
lines to get definitions of things like struct statvfs,
there is no main() function, there are no functions at
all, there are executable statements just floating around
in the ether outside of blocks ... And on top of this,
you want me to "replace Path with ArgV[1]" -- explain to
me again, please, just how "exact" is the code we've seen
thus far?
> I ran both this and 'df -k' directly from a ksh command line under a
> Solaris 5.10 sparc system.
>
This is good: You've given the exact command lines,
as requested.
[vbcol=seagreen]
> The output results from both are exactly as listed on the table in the
> original post, I just extracted out the relevant values.
That is, you did not post the exact output; you chose
to censor it first. Has it occurred to you that some of
the other things df prints might have a bearing on the issue?
I'm not saying they definitely do, but they certainly could --
if only we could see them.
Please try again: *exact* code, *exact* command lines
(they're short; it won't hurt to repeat them so we can have
everything conveniently in one message), *exact* outputs.
Then, perhaps, we can make some progress.
--
Eric Sosman
esosman@ieee-dot-org.invalid
[ Post a follow-up to this message ]
|