Re: struct stat

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 11 Mar 1999 23:18:45 +0000 (GMT)


> Our problem, though, I think is somewhat different. When we
> use lcc to compile, say, the Spec95 benchmark suite, it emits
> compile-time errors in the builds of gcc and perl. These
> two benchmarks compare st_dev for equality, and we all know
> that it is illegal in C to compare two structs.

I was under the impression ANSI C mandated a bytewise comparison.

> If a 64-bit device number is desired, why not declare it
> "long long" explicitly? Why all this hiding behind __GNUC__?

Because long long isnt ansi

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/