On 12/30/05, Matt England <[EMAIL PROTECTED]> wrote:
> So I'm left with figuring out much harder ways to tell system revs
> apart.  I'm guessing I'm going to have to make an application which does
> nothing but evaluate a system and report it's variant (Redhat vs SuSE vs.
> Debian) and revision (Debian Woody/3.0, Sarge/3.1, etc).

I don't know of an API method for this (it may be that there is none)
but one way you can try to tell is by running:

strings /lib/libc.so.6 | egrep "^Compiled by". On Debian sarge you see:

Compiled by GNU CC version 3.3.5 (Debian 1:3.3.5-12).

and on RedHat 7.3:

Compiled by GNU CC version 2.96 20000731 (Red Hat Linux 7.3 2.96-113).

Dunno about the rest of the distributions.

Reply via email to